Class TextBlock
Represents a text block of a laser layout.
public abstract class TextBlock : MarkableBlock, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseTextBlock
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
TextBlock(FontType)
Initializes a new instance of the TextBlock class.
protected TextBlock(FontType fontType)
Parameters
fontType
FontTypeType of font.
Properties
Character
Gets or sets the character settings.
public CharacterDefinition Character { get; set; }
Property Value
Content
Gets or sets the content of the text block.
public string Content { get; set; }
Property Value
FontType
Gets the font type.
public FontType FontType { get; }
Property Value
Remarks
The default value is System.
It is not possible to create TextBlocks with TrueType fonts directly.
Therefore you must create job (MA2 file) with the Marking Builder with TextBlock using the TrueType font.
Upload the job using the job files service.
Add the TextBlock to the job, using the AddAt(Block, int) at correct position.
Upload the job, without clearing the existing job.
TrueTypeFont
Gets or sets the TrueType font parameters.
public TrueTypeFontDefinition TrueTypeFont { get; set; }