Inherits: TextPosition < DesignItem < ScriptObject

Inherited by: AttributePosition, Error, Text

The text position class is the base class for text-based items in a design.

Properties

NameTypeGet/SetBrief
AnglefloatYes/YesThe angle of this item in degrees.
HorizontalAlignmentHorizontalAlignmentYes/YesThe horizontal alignment of this text.
LayerVariant[Layer, none]Yes/YesNo description provided.
MirroredboolYes/YesWhether this text is mirrored.
PositionPointYes/YesNo description provided.
StyleTextStyleYes/YesThe text style of this text.
TextStyleTextStyleYes/YesThe text style of this text.
VerticalAlignmentVerticalAlignmentYes/YesThe vertical alignment of this text.

Enumerations

HorizontalAlignment

NameValueDescription
Left0No description provided.
Centre1No description provided.
Right2No description provided.

VerticalAlignment

NameValueDescription
Bottom0No description provided.
Middle1No description provided.
Top2No description provided.

Property Details

Angle

Type: float

The angle of this item in degrees.


HorizontalAlignment

Type: HorizontalAlignment

The horizontal alignment of this text.


Layer

Type: Variant[Layer, none]


Mirrored

Type: bool

Whether this text is mirrored.


Position

Type: Point


Style

Type: TextStyle

The text style of this text.


TextStyle

Type: TextStyle

The text style of this text.


VerticalAlignment

Type: VerticalAlignment

The vertical alignment of this text.