TextControl
The TextControl offers various attributes, all of which are valid for text manipulation.
Use
This is only used for inheritance and is therefore not available in the toolbox.
Features
The following text manipulations are possible:
- change position horizontally and vertically
- influence font, size and thickness
- add various decorations to the text (e.g. underlined)
- define how the text should be displayed if the available space is not sufficient
Attributes
The control inherits from BaseControl and thus has the same attributes. In addition, there are the following attributes.
Colors
TextColor
tchmi:framework#/definitions/SolidColorColor of texts.
TextDecorationColor
tchmi:framework#/definitions/SolidColorColor of text decorations.
Text
TextVerticalAlignment
tchmi:framework#/definitions/VerticalAlignmentVertical alignment of texts.
TextHorizontalAlignment
tchmi:framework#/definitions/HorizontalAlignmentHorizontal alignment of texts.
TextFontSize
tchmi:framework#/definitions/MeasurementValueFont size of texts. Percentages are relative to the font size of the parent element.
TextFontSizeUnit
tchmi:framework#/definitions/MeasurementUnitUnit for the font size of texts. Can be absolute (px) or relative (%).
TextFontFamily
tchmi:framework#/definitions/FontFamilyFont of texts.
TextFontStyle
tchmi:framework#/definitions/FontStyleFont style of texts.
TextFontWeight
tchmi:framework#/definitions/FontWeightFont weight of texts.
TextDecorationLine
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.TextControl.TextDecorationLinePosition of the text decoration.
TextDecorationStyle
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.TextControl.TextDecorationStyleStyle of text decoration.
UserSelect
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.TextControl.UserSelectBehavior when selecting the text of a user.
TextOverflow
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.TextControl.TextOverflowDefines how to display text that is wider than the control.