Class ThermalLabelEditor
ThermalLabelEditor lets end-users to graphically design barcode thermal labels inside your WPF Windows applications.
Inheritance
Namespace: Neodynamic.Windows.WPF.ThermalLabelEditor
Assembly: cs.temp.dll.dll
Syntax
public class ThermalLabelEditor : Grid
Constructors
ThermalLabelEditor()
Declaration
public ThermalLabelEditor()
Fields
ActiveToolItemProperty
Declaration
public static DependencyProperty ActiveToolItemProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ActiveToolProperty
Declaration
public static DependencyProperty ActiveToolProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerFrameBorderColorProperty
Declaration
public static DependencyProperty AdornerFrameBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerHandlerBackColorProperty
Declaration
public static DependencyProperty AdornerHandlerBackColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerHandlerBorderColorProperty
Declaration
public static DependencyProperty AdornerHandlerBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerHandlerHoverBackColorProperty
Declaration
public static DependencyProperty AdornerHandlerHoverBackColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerLegendsFontFamilyProperty
Declaration
public static DependencyProperty AdornerLegendsFontFamilyProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerLegendsFontSizeProperty
Declaration
public static DependencyProperty AdornerLegendsFontSizeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerLegendsForeColorProperty
Declaration
public static DependencyProperty AdornerLegendsForeColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerLegendsVisibleProperty
Declaration
public static DependencyProperty AdornerLegendsVisibleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerOutOfLabelColorProperty
Declaration
public static DependencyProperty AdornerOutOfLabelColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerOutOfLabelVisibleProperty
Declaration
public static DependencyProperty AdornerOutOfLabelVisibleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerSelectionBackColorProperty
Declaration
public static DependencyProperty AdornerSelectionBackColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AdornerSelectionBorderColorProperty
Declaration
public static DependencyProperty AdornerSelectionBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AllowPartialHitTestSelectionProperty
Declaration
public static DependencyProperty AllowPartialHitTestSelectionProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
AngleSnapProperty
Declaration
public static DependencyProperty AngleSnapProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ArrowKeysLargeStepProperty
Declaration
public static DependencyProperty ArrowKeysLargeStepProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ArrowKeysShortStepProperty
Declaration
public static DependencyProperty ArrowKeysShortStepProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CanCopyProperty
Declaration
public static readonly DependencyProperty CanCopyProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CanCutProperty
Declaration
public static readonly DependencyProperty CanCutProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CanPasteProperty
Declaration
public static readonly DependencyProperty CanPasteProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CanRedoProperty
Declaration
public static readonly DependencyProperty CanRedoProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CanUndoProperty
Declaration
public static readonly DependencyProperty CanUndoProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CurrentSelectionAreaProperty
Declaration
public static readonly DependencyProperty CurrentSelectionAreaProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CurrentSelectionProperty
Declaration
public static readonly DependencyProperty CurrentSelectionProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DisableClipboardProperty
Declaration
public static DependencyProperty DisableClipboardProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DisableShortcutsProperty
Declaration
public static DependencyProperty DisableShortcutsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DuplexFlipColorProperty
Declaration
public static DependencyProperty DuplexFlipColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DuplexFlipHoverColorProperty
Declaration
public static DependencyProperty DuplexFlipHoverColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DuplexLegendsForeColorProperty
Declaration
public static DependencyProperty DuplexLegendsForeColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GridColorProperty
Declaration
public static DependencyProperty GridColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GridSizeProperty
Declaration
public static DependencyProperty GridSizeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GridTypeProperty
Declaration
public static DependencyProperty GridTypeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GuidelineColorProperty
Declaration
public static DependencyProperty GuidelineColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ImageProcessingDpiProperty
Declaration
public static DependencyProperty ImageProcessingDpiProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ImageProcessingMonochromeDpiProperty
Declaration
public static DependencyProperty ImageProcessingMonochromeDpiProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsModifiedProperty
Declaration
public static readonly DependencyProperty IsModifiedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemIndexToolTipForeColorProperty
Declaration
public static DependencyProperty ItemIndexToolTipForeColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemToolTipBackColorProperty
Declaration
public static DependencyProperty ItemToolTipBackColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemToolTipBorderColorProperty
Declaration
public static DependencyProperty ItemToolTipBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemToolTipForeColorProperty
Declaration
public static DependencyProperty ItemToolTipForeColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentFrameBackgroundProperty
Declaration
public static DependencyProperty LabelDocumentFrameBackgroundProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentFrameBorderColorProperty
Declaration
public static DependencyProperty LabelDocumentFrameBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentFrameBorderThicknessProperty
Declaration
public static DependencyProperty LabelDocumentFrameBorderThicknessProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentFrameCornerRadiusProperty
Declaration
public static DependencyProperty LabelDocumentFrameCornerRadiusProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentMarginColorProperty
Declaration
public static DependencyProperty LabelDocumentMarginColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LabelDocumentProperty
Declaration
public static readonly DependencyProperty LabelDocumentProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LiteralImageFileNameProperty
Declaration
public static DependencyProperty LiteralImageFileNameProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LiteralVectorIconColorProperty
Declaration
public static DependencyProperty LiteralVectorIconColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
LiteralVectorIconDataProperty
Declaration
public static DependencyProperty LiteralVectorIconDataProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
NoImageFileNameProperty
Declaration
public static DependencyProperty NoImageFileNameProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RefIconsOpacityProperty
Declaration
public static DependencyProperty RefIconsOpacityProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RepeaterItemColorProperty
Declaration
public static DependencyProperty RepeaterItemColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RFIDTagImageFileNameProperty
Declaration
public static DependencyProperty RFIDTagImageFileNameProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RFIDTagVectorIconColorProperty
Declaration
public static DependencyProperty RFIDTagVectorIconColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RFIDTagVectorIconDataProperty
Declaration
public static DependencyProperty RFIDTagVectorIconDataProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RulerBackgroundProperty
Declaration
public static DependencyProperty RulerBackgroundProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RulerForeColorProperty
Declaration
public static DependencyProperty RulerForeColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RulerLinesColorProperty
Declaration
public static DependencyProperty RulerLinesColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RulerSelectionColorProperty
Declaration
public static DependencyProperty RulerSelectionColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShowGridProperty
Declaration
public static DependencyProperty ShowGridProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShowRulerProperty
Declaration
public static DependencyProperty ShowRulerProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SnapToGridProperty
Declaration
public static DependencyProperty SnapToGridProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SnapToItemsProperty
Declaration
public static DependencyProperty SnapToItemsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TextItemEditModeEnabledProperty
Declaration
public static DependencyProperty TextItemEditModeEnabledProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TrayBackColorProperty
Declaration
public static DependencyProperty TrayBackColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TrayBorderColorProperty
Declaration
public static DependencyProperty TrayBorderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TrayFrameGapProperty
Declaration
public static DependencyProperty TrayFrameGapProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
TrayIconSizeProperty
Declaration
public static DependencyProperty TrayIconSizeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ViewRotationProperty
Declaration
public static readonly DependencyProperty ViewRotationProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ZoomProperty
Declaration
public static DependencyProperty ZoomProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
ActiveDuplexSide
Gets the duplex side (Front/Back) currently active in the editor. Only meaningful when the loaded LabelDocument.IsDuplexDesign is true. Use FlipDuplexSide() to change it.
Declaration
public DuplexSide ActiveDuplexSide { get; }
Property Value
| Type | Description |
|---|---|
| DuplexSide |
ActiveTool
Gets or sets the current active tool of the editor. Default is the Pointer tool used for selection action mainly.
Declaration
public EditorTool ActiveTool { get; set; }
Property Value
| Type | Description |
|---|---|
| EditorTool |
ActiveToolItem
Gets or sets the Item object which is added to the editor's surface by the end-user.
Declaration
public Item ActiveToolItem { get; set; }
Property Value
| Type | Description |
|---|---|
| Item |
Remarks
The Item object specified by this property must match the type which is currently set up to the ActiveTool property. For example, if the ActiveTool is set up to Text, then a new TextItem object needs to be specified to the ActiveToolItem property.
AdornerFrameBorderColor
Gets or sets the border color for the adorner's frame. Default is Black.
Declaration
public Windows.Media.Color AdornerFrameBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerHandlerBackColor
Gets or sets the background color for the adorner's handlers. Default is Green.
Declaration
public Windows.Media.Color AdornerHandlerBackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerHandlerBorderColor
Gets or sets the border color for the adorner's handlers. Default is Black.
Declaration
public Windows.Media.Color AdornerHandlerBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerHandlerHoverBackColor
Gets or sets the background color for the adorner's handlers when the mouse pointer is over them. Default is Red.
Declaration
public Windows.Media.Color AdornerHandlerHoverBackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerLegendsFontFamily
Gets or sets the font family of the size legends (width/height) of adorners. Default is Courier New.
Declaration
public Windows.Media.FontFamily AdornerLegendsFontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.FontFamily |
AdornerLegendsFontSize
Gets or sets the font size of the size legends (width/height) of adorners. Must be greater than zero. Default is 11.
Declaration
public double AdornerLegendsFontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
AdornerLegendsForeColor
Gets or sets the color of the size legends (width/height) of adorners. Default is Black.
Declaration
public Windows.Media.Color AdornerLegendsForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerLegendsVisible
Gets or sets whether the text legends of adorners are visible or not. Default is true.
Declaration
public bool AdornerLegendsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
AdornerOutOfLabelColor
Gets or sets the color for the out of label adorner's frame. Default is Red.
Declaration
public Windows.Media.Color AdornerOutOfLabelColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerOutOfLabelVisible
Gets or sets whether the out of label adorner are visible or not. Default is true.
Declaration
public bool AdornerOutOfLabelVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
AdornerSelectionBackColor
Gets or sets the background color for the selection adorner's frame.
Declaration
public Windows.Media.Color AdornerSelectionBackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AdornerSelectionBorderColor
Gets or sets the border color for the selection adorner's frame.
Declaration
public Windows.Media.Color AdornerSelectionBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
AllowPartialHitTestSelection
Gets or sets whether to allow partial hit test selection. Default is false.
Declaration
public bool AllowPartialHitTestSelection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
AngleSnap
Gets or sets the angle snap used for items' rotation. Default is 5 degrees.
Declaration
public int AngleSnap { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ArrowKeysLargeStep
Gets or sets the large step size in current unit when any of the arrow keys and the control key are pressed. Default is 0.1 inch.
Declaration
public double ArrowKeysLargeStep { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
ArrowKeysShortStep
Gets or sets the short step size in current unit when any of the arrow keys are pressed. Default is 0.01 inch.
Declaration
public double ArrowKeysShortStep { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
CanCopy
Gets whether a Clipboard Copy action can be performed.
Declaration
public bool CanCopy { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CanCut
Gets whether a Clipboard Cut action can be performed.
Declaration
public bool CanCut { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CanPaste
Gets whether a Clipboard Paste action can be performed.
Declaration
public bool CanPaste { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CanRedo
Gets whether the Redo action is available.
Declaration
public bool CanRedo { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CanUndo
Gets whether the Undo action is available.
Declaration
public bool CanUndo { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ClipboardMode
Gets or sets whether Copy, Cut and Paste use only the internal clipboard or also the OS Clipboard (for MDI apps or interaction between different applications).
Declaration
public EditorClipboardMode ClipboardMode { get; set; }
Property Value
| Type | Description |
|---|---|
| EditorClipboardMode |
CurrentSelection
Gets the current selected item on the editor.
Declaration
public Item CurrentSelection { get; }
Property Value
| Type | Description |
|---|---|
| Item |
Remarks
This property returns an Item-derived class representing the current selection on the editor.
If the selection is just one item only, then the returned object will be the Item-derived class of such object. For exmaple, if a Rectangle item is selected, then the returned object will be a RectangleShapeItem instance.
If the selection contains more than one item, then the returned object will be an instance of the MultipleSelectionItem class. The MultipleSelectionItem class contains some properties that are common to most Item-derived classes. That means that some properties of such class are common to all Item-derived classes, for example, the X and Y properties. Notice that the MultipleSelectionItem class also contains some properties that are common for a group of Item-derived classes and not to all. For example, the Font property is valid for TextItem and BarcodeItem object only.
CurrentSelectionArea
Gets the location and size of the current selected items on the editor.
Declaration
public Rect CurrentSelectionArea { get; }
Property Value
| Type | Description |
|---|---|
| Rect |
DisableClipboard
Gets or sets whether the internal clipboard actions are recorded. Default is false.
Declaration
public bool DisableClipboard { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
DisableShortcuts
Gets or sets the keyboard shortcuts to be disabled. Default is None.
Declaration
public KeyboardShortcuts DisableShortcuts { get; set; }
Property Value
| Type | Description |
|---|---|
| KeyboardShortcuts |
DuplexFlipColor
Gets or sets the color used to paint the duplex flip icon. Default is Gray.
Declaration
public Windows.Media.Color DuplexFlipColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
DuplexFlipHoverColor
Gets or sets the color used to paint the duplex flip icon when the mouse pointer is over it. Default is DodgerBlue.
Declaration
public Windows.Media.Color DuplexFlipHoverColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
DuplexLegendsForeColor
Gets or sets the color used to paint the "Front Side"/"Back Side" legend text. Default is Gray.
Declaration
public Windows.Media.Color DuplexLegendsForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
DuplexOutOfBoundsHandling
Gets or sets how CreateThermalLabel() handles items that are positioned outside the boundaries of the duplex side (Front/Back) they belong to. Default is DuplexOutOfBoundsPolicy.RaiseValidationWarning.
Declaration
public DuplexOutOfBoundsPolicy DuplexOutOfBoundsHandling { get; set; }
Property Value
| Type | Description |
|---|---|
| DuplexOutOfBoundsPolicy |
GridColor
Gets or sets the grid color.
Declaration
public Windows.Media.Color GridColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
GridSize
Gets or sets the size of the grid in current unit. Default is zero.
Declaration
public double GridSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
GridType
Gets or sets the grid type.
Declaration
public GridType GridType { get; set; }
Property Value
| Type | Description |
|---|---|
| GridType |
GuidelineColor
Gets or sets the snap to items guideline color.
Declaration
public Windows.Media.Color GuidelineColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
IconComment
Gets or sets the base64 icon image (12x12) for Comments in items.
Declaration
public static string IconComment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconDataBound
Gets or sets the base64 icon image (12x12) for Data Bound items.
Declaration
public static string IconDataBound { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconExpression
Gets or sets the base64 icon image (12x12) for Expressions in items.
Declaration
public static string IconExpression { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconLocked
Gets or sets the base64 icon image (12x12) for Locked items.
Declaration
public static string IconLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconNonEditable
Gets or sets the base64 icon image (12x12) for Non Editable items.
Declaration
public static string IconNonEditable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconNotVisible
Gets or sets the base64 icon image (12x12) for Not Visible items.
Declaration
public static string IconNotVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconPrintAsResidentElement
Gets or sets the base64 icon image (12x12) for PrintAsResidentElement property.
Declaration
public static string IconPrintAsResidentElement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconPrintAsResidentElementError
Gets or sets the base64 icon image (12x12) for when the PrintAsResidentElementValidation method fails.
Declaration
public static string IconPrintAsResidentElementError { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IconReadOnly
Gets or sets the base64 icon image (12x12) for Read Only items.
Declaration
public static string IconReadOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ImageProcessingDpi
Gets or sets the DPI value which will be used for processing the ImageItem objects on the editor's surface. 0 (Auto) resolves it automatically based on the zoom, the monitor scale factor and the resolution of each source image. Default is 0 (Auto).
Declaration
public double ImageProcessingDpi { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
ImageProcessingMonochromeDpi
Gets or sets the DPI value which will be used for processing the ImageItem objects with ConvertToMonochrome enabled when ImageProcessingDpi is 0 (Auto). It should match the target printer resolution so the dithering shown on the editor's surface matches the printed output. Set it to 0 for processing them like color images i.e. based on the zoom. Default is 0 (Auto).
Declaration
public double ImageProcessingMonochromeDpi { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
IsModified
Gets whether the label document has changes since it was loaded or since the last call to MarkAsSaved().
Declaration
public bool IsModified { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Use this property to decide whether the end-user must be prompted to save changes.
IsUserTransformingSelection
Indicates whether the user is currently performing an interactive move/resize/rotate operation on the editor's surface.
Declaration
public bool IsUserTransformingSelection { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ItemIndexToolTipForeColor
Gets or sets the foreground color of the Item index tooltip. Default is OrangeRed.
Declaration
public Windows.Media.Color ItemIndexToolTipForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
ItemToolTipBackColor
Gets or sets the background color of the Item tooltip. Default is #F5F5F5.
Declaration
public Windows.Media.Color ItemToolTipBackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
ItemToolTipBorderColor
Gets or sets the border color of the Item tooltip. Default is #808080.
Declaration
public Windows.Media.Color ItemToolTipBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
ItemToolTipForeColor
Gets or sets the foreground color of the Item tooltip. Default is Black.
Declaration
public Windows.Media.Color ItemToolTipForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
LabelDocument
Gets the LabelDocument object that represents a ThermalLabel object on the editor's surface.
Declaration
public LabelDocument LabelDocument { get; }
Property Value
| Type | Description |
|---|---|
| LabelDocument |
Remarks
The LabelDocument object is a lightweight version of the ThermalLabel class and is automatically created when you load a ThermalLabel object through the LoadThermalLabel() method.
LabelDocumentFrameBackground
Gets or sets the background brush for the label document frame on the editor's surface. Default is White.
Declaration
public Brush LabelDocumentFrameBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| Brush |
LabelDocumentFrameBorderColor
Gets or sets the border color for the label document frame on the editor's surface. Default is White.
Declaration
public Windows.Media.Color LabelDocumentFrameBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
LabelDocumentFrameBorderThickness
Gets or sets the thickness of the label document frame's border on the editor's surface. Default is 0.5.
Declaration
public double LabelDocumentFrameBorderThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LabelDocumentFrameCornerRadius
Gets or sets the radii of the corners of the label document frame. Default value is 10.
Declaration
public double LabelDocumentFrameCornerRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LabelDocumentMarginColor
Gets or sets the background color for the label document margin area on the editor's surface. Default is LightBlue.
Declaration
public Windows.Media.Color LabelDocumentMarginColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
LicenseKey
Gets or sets the license key info.
Declaration
public static string LicenseKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LicenseOwner
Gets or sets the license owner info.
Declaration
public static string LicenseOwner { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LiteralImageFileName
Gets or sets the image file name to display on the editor's surface (inside the Component Tray) for a LiteralItem, instead of its plain text.
Declaration
public string LiteralImageFileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LiteralVectorIconColor
Gets or sets the fill color used for LiteralVectorIconData. Default is Black.
Declaration
public Windows.Media.Color LiteralVectorIconColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
LiteralVectorIconData
Gets or sets vector icon data (WPF Path Mini-Language, e.g. "M12,2 L2,7 L12,12 L22,7 Z") to display on the editor's surface (inside the Component Tray) for a LiteralItem, instead of LiteralImageFileName or the default embedded icon. Takes precedence over both when specified and it parses successfully.
Declaration
public string LiteralVectorIconData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
NoImageFileName
Gets or sets the image file name to display on the editor's surface when the source of an ImageItem cannot be found.
Declaration
public string NoImageFileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RecordSelectionInUndoHistory
Gets or sets whether a change in the selection alone is recorded as an undoable step. Default is false: selecting items does not create Undo steps, does not clear the Redo history and does not set CanUndo/IsModified. Set it to true to restore the behavior of previous versions.
Declaration
public bool RecordSelectionInUndoHistory { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
RefIconsOpacity
Gets or sets the opacity factor applied to all the reference icons used by the editor. A value of 0.0 makes the icons completely transparent, while a value of 1.0 makes the icons completely opaque. Default is 1.0.
Declaration
public double RefIconsOpacity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
RepeaterItemColor
Gets or sets the color for the RepeaterItem adorner's frame. Default is DeepSkyBlue.
Declaration
public Windows.Media.Color RepeaterItemColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
RFIDTagImageFileName
Gets or sets the image file name to display on the editor's surface for a RFIDTagItem.
Declaration
public string RFIDTagImageFileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RFIDTagVectorIconColor
Gets or sets the fill color used for RFIDTagVectorIconData. Default is Black.
Declaration
public Windows.Media.Color RFIDTagVectorIconColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
RFIDTagVectorIconData
Gets or sets vector icon data (WPF Path Mini-Language, e.g. "M12,2 L2,7 L12,12 L22,7 Z") to display on the editor's surface (inside the Component Tray) for a RFIDTagItem, instead of RFIDTagImageFileName or the default embedded icon. Takes precedence over both when specified and it parses successfully.
Declaration
public string RFIDTagVectorIconData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RulerBackground
Gets or sets the background brush for the editor's rulers. Default is SystemColors.ControlBrush
Declaration
public Brush RulerBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| Brush |
RulerForeColor
Gets or sets the foreground color for the number tags of the editor's rulers.
Declaration
public Windows.Media.Color RulerForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
RulerLinesColor
Gets or sets the color for the lines which compose the editor's rulers.
Declaration
public Windows.Media.Color RulerLinesColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
RulerSelectionColor
Gets or sets the background color for the selection zone of the editor's rulers.
Declaration
public Windows.Media.Color RulerSelectionColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
ShowGrid
Gets or sets whether grid is displayed. Default is false.
Declaration
public bool ShowGrid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ShowRuler
Gets or sets whether ruler is displayed. Default is true.
Declaration
public bool ShowRuler { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SnapToGrid
Gets or sets whether items will be placed and sized according to the divisions of the grid. Default is false.
Declaration
public bool SnapToGrid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SnapToItems
Gets or sets whether the current selected items will be placed according to the edges of nearby items. Default is false.
Declaration
public bool SnapToItems { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
TextItemEditModeEnabled
Gets or sets whether TextItem objects can enter in Edit Mode. Default is true.
Declaration
public bool TextItemEditModeEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
TrayBackColor
Gets or sets the background color of the Component Tray. Default is WhiteSmoke.
Declaration
public Windows.Media.Color TrayBackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
TrayBorderColor
Gets or sets the border color of the Component Tray. Default is Silver.
Declaration
public Windows.Media.Color TrayBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Color |
TrayFrameGap
Gets or sets the vertical gap (in DIU) between the label canvas and the Component Tray. Default is 12.
Declaration
public double TrayFrameGap { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
TrayIconSize
Gets or sets the width/height (in DIU) of each icon inside the Component Tray. Default is 32.
Declaration
public double TrayIconSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
ViewRotation
Gets the current editor view's rotation.
Declaration
public Rotate ViewRotation { get; }
Property Value
| Type | Description |
|---|---|
| Rotate |
Zoom
Gets or sets the zoom percentage level of the editor's content. The valid range for zoom is 0% - 1000% (0% means zoom to the whole document). Default is 100 which means normal size.
Declaration
public double Zoom { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
AddItem(Item)
Adds an Item to the end of the items collection of the current label.
Declaration
public void AddItem(Item item)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The item to add. |
AddItemsRange(List<Item>)
Adds a list of Items to the end of the items collection of the current label.
Declaration
public void AddItemsRange(List<Item> items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<Item> | items | The list of items to add. |
BringForward()
Brings the selected items one step closer to the front of the label surface.
Declaration
public void BringForward()
BringToFront()
Brings the selected items to the front of the label surface.
Declaration
public void BringToFront()
ClipboardClear()
Removes all data from the internal Clipboard.
Declaration
public void ClipboardClear()
ClipboardItems()
Gets the list of Items from the internal Clipboard.
Declaration
public List<Item> ClipboardItems()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<Item> | The list of Items from the internal Clipboard. |
Close()
Closes the current label document.
Declaration
public void Close()
Copy()
Copies the current selection in the editor to the internal Clipboard.
Declaration
public void Copy()
CreateThermalLabel()
Creates a ThermalLabel object based on the current LabelDocument data and visual items.
Declaration
public ThermalLabel CreateThermalLabel()
Returns
| Type | Description |
|---|---|
| ThermalLabel | A ThermalLabel object. |
Cut()
Cuts the current selection in the editor and moves it to the internal Clipboard.
Declaration
public void Cut()
DeleteAll()
Deletes all the items on the editor's surface.
Declaration
public void DeleteAll()
DeleteSelectedItems()
Deletes the selected items on the editor's surface.
Declaration
public void DeleteSelectedItems()
FlipDuplexSide()
Flips the editor to show the other duplex side (Front <-> Back). Only valid when the loaded LabelDocument.IsDuplexDesign is true and has exactly 2 pages.
Declaration
public void FlipDuplexSide()
GetDuplexItemsOutOfBounds()
Returns the list of items (item + side) that are currently positioned outside the boundaries of the duplex side they belong to, across BOTH sides -- not just the one currently displayed. Use this to warn the user before saving/printing.
Declaration
public IReadOnlyList<DuplexOutOfBoundsItem> GetDuplexItemsOutOfBounds()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<DuplexOutOfBoundsItem> |
GetSelectedItemsIndexes()
Returns an array of the indexes of each selected item.
Declaration
public int[] GetSelectedItemsIndexes()
Returns
| Type | Description |
|---|---|
| System.Int32[] | An array of the indexes of each selected item. |
Group()
Groups all the selected items on the editor's surface.
Declaration
public void Group()
InsertItem(Int32, Item)
Inserts an Item into the current label at the specified index.
Declaration
public void InsertItem(int index, Item item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which the item should be inserted. |
| Item | item | The item to insert. |
InsertItemsRange(Int32, List<Item>)
Inserts a list of Items into the current label at the specified index.
Declaration
public void InsertItemsRange(int index, List<Item> items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which the items should be inserted. |
| System.Collections.Generic.List<Item> | items | The list of items to insert. |
LayoutSelectedItems(LayoutAlignment)
Performs the specified layout alignment option on the selectd items.
Declaration
public void LayoutSelectedItems(LayoutAlignment layoutAlignment)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutAlignment | layoutAlignment | The layout alignment option. |
LoadThermalLabel(ThermalLabel)
Loads the specified ThermalLabel object on the editor's surface.
Declaration
public void LoadThermalLabel(ThermalLabel thermalLabel)
Parameters
| Type | Name | Description |
|---|---|---|
| ThermalLabel | thermalLabel | A ThermalLabel object. |
LockSelectedItems()
Locks all the items in the current selection.
Declaration
public void LockSelectedItems()
MarkAsSaved()
Marks the current label document as saved, so IsModified becomes false. Call it right after persisting the document (e.g. after saving the output of CreateThermalLabel()).
Declaration
public void MarkAsSaved()
MoveSelectedItems(Double, Double)
Moves the selected items by the specified horizontal and vertical offsets.
Declaration
public void MoveSelectedItems(double deltaX, double deltaY)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | deltaX | The horizontal (X-axis) offset. |
| System.Double | deltaY | The vertical (Y-axis) offset. |
OnActiveDuplexSideChanged(EventArgs)
Declaration
protected virtual void OnActiveDuplexSideChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnBeforeDuplexDesignDisabled(BeforeDuplexDesignDisabledEventArgs)
Declaration
protected virtual void OnBeforeDuplexDesignDisabled(BeforeDuplexDesignDisabledEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| BeforeDuplexDesignDisabledEventArgs | e |
OnCurrentSelectionAfterDelete(EventArgs)
Declaration
protected virtual void OnCurrentSelectionAfterDelete(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnCurrentSelectionBeforeDelete(CancelEventArgs)
Declaration
protected virtual void OnCurrentSelectionBeforeDelete(CancelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CancelEventArgs | e |
OnCurrentSelectionTextChanged(TextChangedEventArgs)
Declaration
protected virtual void OnCurrentSelectionTextChanged(TextChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TextChangedEventArgs | e |
OnDuplexItemSideChanged(DuplexItemSideChangedEventArgs)
Declaration
protected virtual void OnDuplexItemSideChanged(DuplexItemSideChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DuplexItemSideChangedEventArgs | e |
OnDuplexItemsOutOfBounds(DuplexOutOfBoundsEventArgs)
Declaration
protected virtual void OnDuplexItemsOutOfBounds(DuplexOutOfBoundsEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DuplexOutOfBoundsEventArgs | e |
OnLabelLoaded(EventArgs)
Declaration
protected virtual void OnLabelLoaded(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnNewItemCreated(EventArgs)
Declaration
protected virtual void OnNewItemCreated(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnSelectionAreaChanged(EventArgs)
Declaration
protected virtual void OnSelectionAreaChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnSelectionChanged(EventArgs)
Declaration
protected virtual void OnSelectionChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnSelectionItemPropertyChanged(SelectionItemPropertyChangedEventArgs)
Declaration
protected virtual void OnSelectionItemPropertyChanged(SelectionItemPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionItemPropertyChangedEventArgs | e |
OnSelectionTransformEnded(EventArgs)
Declaration
protected virtual void OnSelectionTransformEnded(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnSelectionTransformStarted(EventArgs)
Declaration
protected virtual void OnSelectionTransformStarted(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
Paste()
Pastes the content of the internal Clipborad on the editor surface.
Declaration
public void Paste()
Redo()
Performs a Redo action.
Declaration
public void Redo()
RotateLabel(ThermalLabel, Rotate, Rotate)
Rotates a ThermalLabel object.
Declaration
public ThermalLabel RotateLabel(ThermalLabel thermalLabel, Rotate currentRotateView, Rotate newRotateView)
Parameters
| Type | Name | Description |
|---|---|---|
| ThermalLabel | thermalLabel | The ThermalLabel object. |
| Rotate | currentRotateView | The current RotateView. |
| Rotate | newRotateView | The new RotateView. |
Returns
| Type | Description |
|---|---|
| ThermalLabel | Returns a rotated version of the specified ThermalLabel object. |
RotateView(Rotate)
Rotates the editor view to the specified rotation value.
Declaration
public void RotateView(Rotate viewRotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Rotate | viewRotation | The view's rotation |
Save(Stream, Boolean)
Saves the ThermalLabel object in XML format based on the current LabelDocument data and visual items to the specified stream.
Declaration
public void Save(Stream stream, bool keepViewRotation = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream where the ThermalLabel object will be saved. |
| System.Boolean | keepViewRotation | If true, the ThermalLabel object will be saved with the current view rotation applied. |
Save(String, Boolean)
Saves the ThermalLabel object in XML format based on the current LabelDocument data and visual items to the specified file name.
Declaration
public void Save(string fileName, bool keepViewRotation = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | A string that contains the name of the file (full path) to which to save the ThermalLabel object. |
| System.Boolean | keepViewRotation | If true, the ThermalLabel object will be saved with the current view rotation applied. |
SaveAsJson(Stream, Boolean)
Saves the ThermalLabel object in JSON format based on the current LabelDocument data and visual items to the specified stream.
Declaration
public void SaveAsJson(Stream stream, bool keepViewRotation = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream where the ThermalLabel object will be saved. |
| System.Boolean | keepViewRotation | If true, the ThermalLabel object will be saved with the current view rotation applied. |
SaveAsJson(String, Boolean)
Saves the ThermalLabel object in JSON format based on the current LabelDocument data and visual items to the specified file name.
Declaration
public void SaveAsJson(string fileName, bool keepViewRotation = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | A string that contains the name of the file (full path) to which to save the ThermalLabel object. |
| System.Boolean | keepViewRotation | If true, the ThermalLabel object will be saved with the current view rotation applied. |
SelectAll()
Selects all the items on the editor's surface.
Declaration
public void SelectAll()
SelectItemByIndex(Int32)
Selects an item by its index number (zero-based) on the editor's surface. The index of an item is its position in CreateThermalLabel()().Items.
Declaration
public void SelectItemByIndex(int itemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | itemIndex | The index of the item to be selected. |
SelectItemByName(String)
Selects an item by its name on the editor's surface.
Declaration
public void SelectItemByName(string itemName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | itemName | The name of the item to be selected. |
SelectItemsByIndexes(Int32[])
Selects a set of items by their indexes on the editor's surface. The index of an item is its position in CreateThermalLabel()().Items.
Declaration
public void SelectItemsByIndexes(int[] itemIndexes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | itemIndexes | The indexes of the items to be selected. |
SelectItemsByNames(String[])
Selects a set of items by their names on the editor's surface.
Declaration
public void SelectItemsByNames(string[] itemNames)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | itemNames | The names of the items to be selected. |
SelectItemsByTag(String)
Selects all the items matching the specified tag on the editor's surface.
Declaration
public void SelectItemsByTag(string tag)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tag | The tag of the items to be selected. |
SelectItemsByType(String)
Selects all the items matching the specified Item Type on the editor's surface.
Declaration
public void SelectItemsByType(string itemType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | itemType | The Item Type of the items to be selected. Valid values are TextItem, BarcodeItem, ImageItem i.e. any class name derived from Item class. |
SendBackward()
Sends the selected items one step toward the background of the label surface.
Declaration
public void SendBackward()
SendToBack()
Sends the selected items to the background of the label surface.
Declaration
public void SendToBack()
SetSelectedItemsToSameSize(Boolean, Boolean)
Sets the selected items to the same size of the first item.
Declaration
public void SetSelectedItemsToSameSize(bool sameWidth, bool sameHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | sameWidth | Set items size to the same width. |
| System.Boolean | sameHeight | Set items size to the same height. |
SnapToGridAll()
It places and sizes all the Items according to the divisions of the grid.
Declaration
public void SnapToGridAll()
SnapToGridByCurrentSelection()
It places and sizes the current selected Items according to the divisions of the grid.
Declaration
public void SnapToGridByCurrentSelection()
SnapToGridByItemIndex(Int32)
It places and sizes the specified Item (by its index) according to the divisions of the grid. The index of an item is its position in CreateThermalLabel()().Items.
Declaration
public void SnapToGridByItemIndex(int itemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | itemIndex | The item index. |
SnapToGridByItemName(String)
It places and sizes the specified Item (by its name) according to the divisions of the grid.
Declaration
public void SnapToGridByItemName(string itemName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | itemName | The item name. |
Undo()
Performs an Undo action.
Declaration
public void Undo()
Ungroup()
Ungroups all the selected items on the editor's surface.
Declaration
public void Ungroup()
UnlockSelectedItems()
Unlocks all the items in the current selection.
Declaration
public void UnlockSelectedItems()
UnselectAll()
Unselects all the selected items on the editor's surface.
Declaration
public void UnselectAll()
UpdateBaseOnI18N()
Updates all the editor strings values based on the current ThermalLabel.I18N object.
Declaration
public void UpdateBaseOnI18N()
UpdateLabelDocument(LabelDocument)
Updates the LabelDocument object on the editor's surface.
Declaration
public bool UpdateLabelDocument(LabelDocument fromLabelDocument)
Parameters
| Type | Name | Description |
|---|---|---|
| LabelDocument | fromLabelDocument | The LabelDocument that the current LabelDocument on the editor's surface will be updated from. |
Returns
| Type | Description |
|---|---|
| System.Boolean | false if the update was cancelled by a BeforeDuplexDesignDisabled handler (nothing was modified) or there is nothing to update; otherwise true. |
UpdateLabelDocument(SDK.Printing.UnitType, Double, Double, Int32)
Updates the LabelDocument object on the editor's surface.
Declaration
public void UpdateLabelDocument(SDK.Printing.UnitType unit, double width, double height, int numOfFractionalDigits)
Parameters
| Type | Name | Description |
|---|---|---|
| SDK.Printing.UnitType | unit | The Unit of Measurement for the label document. |
| System.Double | width | The width of the label document. |
| System.Double | height | The height of the label document. |
| System.Int32 | numOfFractionalDigits | The number of fractional digits to use with all floating-point values related to the label document. |
UpdateLabelDocument(SDK.Printing.UnitType, Double, Double, Int32, Double, Double, Double, Int32, Double, Boolean, Double, Double, Int32, FrameThickness, String, Collection<ThermalLabelPage>, FrameThickness, Boolean, Boolean, String, Nullable<LabelShape>)
Updates the LabelDocument object on the editor's surface.
Declaration
public bool UpdateLabelDocument(SDK.Printing.UnitType unit, double width, double height, int numOfFractionalDigits, double gapLength, double markLength, double offsetLength, int labelsPerRow, double labelsHorizontalGapLength, bool isContinuous, double sheetLabelsWidth, double sheetLabelsHeight, int sheetLabelsCount, FrameThickness sheetLabelsMargin, string designBackgroundImage = "", Collection<ThermalLabelPage> pages = null, FrameThickness margin = null, bool isDuplexDesign = false, bool useDefaultMediaType = false, string dataFieldReplicates = "", LabelShape? shape = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SDK.Printing.UnitType | unit | The Unit of Measurement for the label document. |
| System.Double | width | The width of the label document. |
| System.Double | height | The height of the label document. |
| System.Int32 | numOfFractionalDigits | The number of fractional digits to use with all floating-point values related to the label document. |
| System.Double | gapLength | The vertical gap length between labels. |
| System.Double | markLength | The mark length or thickness between labels. |
| System.Double | offsetLength | The offset length or thickness between labels. |
| System.Int32 | labelsPerRow | The number of labels per row in the media roll. |
| System.Double | labelsHorizontalGapLength | The horizontal gap length between labels when the media roll contains more than one label per row. |
| System.Boolean | isContinuous | Whether this document is on a continuous media roll i.e. labels are not separated by gaps, spaces, notches, slots, or holes. |
| System.Double | sheetLabelsWidth | The width of the Sheet Labels where this thermal label is part of. |
| System.Double | sheetLabelsHeight | The height of the Sheet Labels where this thermal label is part of. |
| System.Int32 | sheetLabelsCount | The total number individual labels of the Sheet Labels where this thermal label is part of. |
| FrameThickness | sheetLabelsMargin | The margin of the Sheet Labels where this thermal label is part of. |
| System.String | designBackgroundImage | A non-printing background image that assists you in the design of your labels through the visual editors. Image must be specified in Base64 format. |
| Collection<ThermalLabelPage> | pages | A collection of ThermalLabelPage objects representing the pages within this thermal label object. |
| FrameThickness | margin | The margin of the thermal label. |
| System.Boolean | isDuplexDesign | Whether this document is a duplex design. |
| System.Boolean | useDefaultMediaType | |
| System.String | dataFieldReplicates | |
| System.Nullable<LabelShape> | shape |
Returns
| Type | Description |
|---|---|
| System.Boolean | false if the update was cancelled by a BeforeDuplexDesignDisabled handler (nothing was modified) or there is no label document loaded; otherwise true. |
UpdateSelectionItemsProperties()
Updates the properties of the selected items on the editor's surface.
Declaration
public void UpdateSelectionItemsProperties()
Remarks
When you present the selected items' properties to the end-user through some UI like a PropertyGrid control, a dialog box, etc. and the user modifies them, you must call this method so the changes are reflected on the selected items on the editor's surface.
ValidateOutOfLabelItems()
Validates whether Items are inside label boundary or not.
Declaration
public bool ValidateOutOfLabelItems()
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if any Item is out of the label boundary; otherwise false. |
Events
ActiveDuplexSideChanged
Occurs when the active duplex side (Front/Back) changes, either by calling FlipDuplexSide() or by Undo/Redo restoring a different active side.
Declaration
public event EventHandler ActiveDuplexSideChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
BeforeDuplexDesignDisabled
Occurs right before a duplex document is switched to a simplex one while there are items on the Back side. A simplex document has no Back side, so those items would be deleted.
Declaration
public event BeforeDuplexDesignDisabledEventHandler BeforeDuplexDesignDisabled
Event Type
| Type | Description |
|---|---|
| BeforeDuplexDesignDisabledEventHandler |
ClipboardStateChanged
Occurs when the state of the internal Clipboard changes.
Declaration
public event EventHandler ClipboardStateChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Remarks
Handle this event to update the state of the classic Copy, Cut and Paste buttons of the UI by using the CanCopy, CanCut and CanPaste properties.
CurrentSelectionAfterDelete
Occurs just after the current item selection was deleted from the editor's surface.
Declaration
public event EventHandler CurrentSelectionAfterDelete
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
CurrentSelectionBeforeDelete
Occurs just before the current item selection is being deleted from the editor's surface.
Declaration
public event CancelEventHandler CurrentSelectionBeforeDelete
Event Type
| Type | Description |
|---|---|
| CancelEventHandler |
CurrentSelectionTextChanged
Occurs when text content changes in the current selected TextItem.
Declaration
public event TextChangedEventHandler CurrentSelectionTextChanged
Event Type
| Type | Description |
|---|---|
| TextChangedEventHandler |
DuplexItemSideChanged
Occurs when an item is explicitly moved from one duplex side to another (currently: Cut on one side followed by Paste after flipping to the other side).
Declaration
public event DuplexItemSideChangedEventHandler DuplexItemSideChanged
Event Type
| Type | Description |
|---|---|
| DuplexItemSideChangedEventHandler |
DuplexItemsOutOfBounds
Occurs when CreateThermalLabel() finds items positioned outside the bounds of the duplex side (Front/Back) they belong to and DuplexOutOfBoundsHandling is set to DuplexOutOfBoundsPolicy.RaiseValidationWarning. Handlers can set e.Cancel = true to abort the export (CreateThermalLabel() will then return null).
Declaration
public event DuplexOutOfBoundsEventHandler DuplexItemsOutOfBounds
Event Type
| Type | Description |
|---|---|
| DuplexOutOfBoundsEventHandler |
LabelLoaded
Occurs when is fully loaded on the editor's surface.
Declaration
public event EventHandler LabelLoaded
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
ModifiedChanged
Occurs when the value of the IsModified property changes.
Declaration
public event EventHandler ModifiedChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
MouseDoubleClick
Occurs when a mouse button is clicked two times on the editor's canvas.
Declaration
public event MouseButtonEventHandler MouseDoubleClick
Event Type
| Type | Description |
|---|---|
| MouseButtonEventHandler |
NewItemCreated
Occurs when a new item is created on the editor's surface.
Declaration
public event EventHandler NewItemCreated
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
SelectionAreaChanged
Occurs when the editor's selection area changes.
Declaration
public event EventHandler SelectionAreaChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Remarks
Handle this event to present the selection's location and size to the end-user by using the CurrentSelectionArea property.
SelectionChanged
Occurs when the editor's selection changes.
Declaration
public event EventHandler SelectionChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Remarks
Handle this event to present the selection data to the end-user by using the CurrentSelection property.
SelectionItemPropertyChanged
Occurs when any property of the selected item changes.
Declaration
public event EventHandler<SelectionItemPropertyChangedEventArgs> SelectionItemPropertyChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<SelectionItemPropertyChangedEventArgs> |
SelectionTransformEnded
Occurs when the user finishes an interactive transform (mouse button released, or the interaction is cancelled). Handlers here are the right place to do expensive UI synchronization (e.g. refresh a PropertyGrid), since this fires once per gesture instead of once per mouse-move sample.
Declaration
public event EventHandler SelectionTransformEnded
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
SelectionTransformStarted
Occurs when the user starts an interactive transform (move, resize, rotate) on the currently selected item(s) on the editor's surface.
Declaration
public event EventHandler SelectionTransformStarted
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
UndoStateChanged
Occurs when the undo state of the editor changes.
Declaration
public event EventHandler UndoStateChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Remarks
Handle this event to update the Undo and Redo buttons of the UI by using the CanUndo and CanRedo properties.
ViewRotationChanged
Occurs when the editor view's rotation changes.
Declaration
public event EventHandler ViewRotationChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |