Table of Contents

Class TextBlock

Namespace
Loehnert.Lisrt.Laser.Keyence.Jobs
Assembly
Loehnert.Lisrt.Laser.Keyence.dll

Represents a text block of a laser layout.

public abstract class TextBlock : MarkableBlock, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
TextBlock
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

TextBlock(FontType)

Initializes a new instance of the TextBlock class.

protected TextBlock(FontType fontType)

Parameters

fontType FontType

Type of font.

Properties

Character

Gets or sets the character settings.

public CharacterDefinition Character { get; set; }

Property Value

CharacterDefinition

Content

Gets or sets the content of the text block.

public string Content { get; set; }

Property Value

string

FontType

Gets the font type.

public FontType FontType { get; }

Property Value

FontType

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; }

Property Value

TrueTypeFontDefinition