TextBox
-
class
Markup.Shapes.TextBox() This object encapsulates a text and rectangle object into one entity. Sizing of the box and positioning of the string is handled by the system. This class consists of two portions which control the look and feel of the markup. The text portion controls the styling of the text, while the box portion controls the styling of the outer rectangle.
Constructors
Methods
-
Markup.Shapes.TextBox.getBoxPortion() inherited
getBoxPortion():RectangleBaseGets the Box portion of the TextBox. Use the methods on this object to modify the appearance of the rectangle around the text string
Returns:
RectangleBasethe rectangle markup object.
-
Markup.Shapes.TextBox.getPadding() inherited
getPadding(): numberGets the Pixel distance between the text and outer rectangle
Returns: number
the padding value.
-
Markup.Shapes.TextBox.getPosition() - getPosition():
Point2Gets the position in screen space of the top-left corner of the TextBox rectangle
Returns:
Point2the TextBox position
-
Markup.Shapes.TextBox.getTextPortion() inherited
getTextPortion():TextMarkupBaseGets the Text portion of the TextBox. Use the methods on this object to modify the appearance of the text string
Returns:
TextMarkupBasethe text markup object
-
Markup.Shapes.TextBox.getTextString() - getTextString(): string
Gets the text string for this box
Returns: string
the text string
-
Markup.Shapes.TextBox.setPadding() inherited
setPadding(padding: number): voidSets the Pixel distance between the text and outer rectangle
Parameters
padding: number
the padding value.Returns: void
-
Markup.Shapes.TextBox.setPosition() - setPosition(position:
Point2): voidSets the position in screen space of the top-left corner of the TextBox rectangle
Parameters
position:
Point2the TextBox positionReturns: void
-
Markup.Shapes.TextBox.setTextString() - setTextString(text: string): void
Sets the text string for this box
Parameters
text: string
the text stringReturns: void