TextView
The TextView control is used to display a static text (Label).
The TextView
inherits all the methods and properties from the base class View
.
Constructor:
constructor(parent: View)
Creates an instance of TExtView control.parent
: the View containing the control itself.
Properties:
text: string
The text content to be displayed in the view.textAlignment: Alignment
Defines the horizontal alignment of the text within the view. SeeAlignment
.textVerticalAlignment: VerticalAlignment
Specifies the vertical alignment of the text. SeeVerticalAlignment
.autoSize: boolean
Determines whether the control automatically adjusts its size to fit the text. Default is false.wordWrap: boolean
Controls whether the text wraps when it exceeds the width of the control. Default is false.