Class LabelDocument
Represents a label document on the editor's surface.
Inheritance
Inherited Members
Namespace: Neodynamic.Windows.ThermalLabelEditor
Assembly: cs.temp.dll.dll
Syntax
public class LabelDocument
Properties
BatchCut
Gets or sets number of labels after which the cut will be performed. Default is 1.
Declaration
public int BatchCut { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
The printer must have a cutter for this command to work and CutAfterPrinting property must be set to true.
CutAfterPrinting
Gets or sets whether this label is cut after printing. Default is false.
Declaration
public bool CutAfterPrinting { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Darkness
Gets or sets the output printing darkness setting which depends on the target printer type. Read remarks.
Declaration
public double Darkness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Remarks
- For ZPL printers: The darkness level which must range from -30 to 30, depending on current value of printer settings. NOTE: The darkness level for the XiIIIPlus printer must be 0 to 30 in increments of 0.1.
- For EPL printers: The darkness level must range from 0 to 15.
- For Intermect/Fingerprint printers: The darkness level must range from -10 to 10 in steps of 2.
DataFieldReplicates
Gets or sets the DataField name from the data source that must be used for specifying the number of replicates for each data source row. Default is an empty string
Declaration
public string DataFieldReplicates { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
- The data field must be an Integer type.
- This property will take place over the PrintJob's Replicates property.
DesignBackgroundImage
A non-printing background image (in PNG format) that assists you in the design of your labels through the visual editors. Image must be specified in Base64 format.
Declaration
public string DesignBackgroundImage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
GapLength
Gets or sets the vertical gap length between labels. The unit of measurement is specified by UnitType property. Default value is 0 (zero)
Declaration
public double GapLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Height
Gets or sets the height of the label document.
Declaration
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
IsContinuous
Gets or sets whether this document is on a continuous media roll i.e. labels are not separated by gaps, spaces, notches, slots, or holes. Default is false.
Declaration
public bool IsContinuous { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsDuplexDesign
Gets or sets whether this document is a duplex design. Default is false.
Declaration
public bool IsDuplexDesign { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LabelsHorizontalGapLength
Gets or sets the horizontal gap length between labels when the media roll contains more than one label per row. The unit of measurement is specified by UnitType property. Default value is 0 (zero)
Declaration
public double LabelsHorizontalGapLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LabelsPerRow
Gets or sets the number of labels per row in the media roll. Default value is 1
Declaration
public int LabelsPerRow { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Margin
Gets or sets the margin of the thermal label. The unit of measurement is specified by UnitType property. Default value is 0.
Declaration
public FrameThickness Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| FrameThickness |
MarkLength
Gets or sets the mark length or thickness between labels. The unit of measurement is specified by UnitType property. Default value is 0 (zero)
Declaration
public double MarkLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
NumOfFractionalDigits
Gets or sets the number of fractional digits to use with all floating-point values. Default is 4.
Declaration
public int NumOfFractionalDigits { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
The number of fractional digits is used to round floating-point values like item's X and Y location, Width and Height, etc.
OffsetLength
Gets or sets the offset length or thickness between labels. The unit of measurement is specified by UnitType property. Default value is 0 (zero)
Declaration
public double OffsetLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Pages
Gets a collection of ThermalLabelPage objects representing the pages within this thermal label object. Default value is an empty collection.
Declaration
public Collection<ThermalLabelPage> Pages { get; set; }
Property Value
| Type | Description |
|---|---|
| Collection<ThermalLabelPage> |
PrintMirror
Gets or sets whether this label is printed as a mirror image. Default is false.
Declaration
public bool PrintMirror { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PrintSpeed
Gets or sets the media speed during printing. The value setting depends on the printer model and usually is in IPS (Inch Per Seconds). Look for it in the printer user manual.
Declaration
public string PrintSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Shape
Gets or sets the shape of this label. Default is Rectangle.
Declaration
public LabelShape Shape { get; set; }
Property Value
| Type | Description |
|---|---|
| LabelShape |
SheetLabelsCount
Gets or sets the total number individual labels of the Sheet Labels where this thermal label is part of. Default value is 0.
Declaration
public int SheetLabelsCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SheetLabelsHeight
Gets or sets the height of the Sheet Labels where this thermal label is part of. The unit of measurement is specified by UnitType property. Default value is 0.
Declaration
public double SheetLabelsHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
SheetLabelsMargin
Gets or sets the margin of the Sheet Labels where this thermal label is part of. The unit of measurement is specified by UnitType property. Default value is 0.
Declaration
public FrameThickness SheetLabelsMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| FrameThickness |
SheetLabelsWidth
Gets or sets the width of the Sheet Labels where this thermal label is part of. The unit of measurement is specified by UnitType property. Default value is 0.
Declaration
public double SheetLabelsWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
UnitType
Gets or sets the Unit of Measurement for the label document.
Declaration
public UnitType UnitType { get; set; }
Property Value
| Type | Description |
|---|---|
| UnitType |
UseDefaultMediaType
Gets or sets whether to use the default printer configuration for Media Type (Continuous, Web sensing, Mark sensing, etc). Default is false.
Declaration
public bool UseDefaultMediaType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
For ZPL printers only.
Width
Gets or sets the width of the label document.
Declaration
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
UpdateFrom(LabelDocument)
Updates this LabelDocument object with the properties of the specified LabelDocument object.
Declaration
public void UpdateFrom(LabelDocument doc)
Parameters
| Type | Name | Description |
|---|---|---|
| LabelDocument | doc | The LabelDocument object that is used for updating this LabelDocument object. |