Constructors
Methods
Constructors
constructor
Methods
getBoxPortion
-
Gets the Box portion of the TextBox. Use the methods on this object to modify the appearance of the rectangle around the text string
Returns RectangleBase
the rectangle markup object.
getPadding
-
Gets the Pixel distance between the text and outer rectangle
Returns number
the padding value.
getPosition
-
Gets the position in screen space of the top-left corner of the TextBox rectangle
Returns Point2
the TextBox position
getTextPortion
-
Gets the Text portion of the TextBox. Use the methods on this object to modify the appearance of the text string
Returns TextMarkupBase
the text markup object
getTextString
-
Gets the text string for this box
Returns string
the text string
setPadding
-
Sets the Pixel distance between the text and outer rectangle
Parameters
-
padding: number
the padding value.
Returns void
-
setPosition
-
Sets the position in screen space of the top-left corner of the TextBox rectangle
Parameters
-
position: Point2
the TextBox position
Returns void
-
setTextString
-
Sets the text string for this box
Parameters
-
text: string
the text string
Returns void
-
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.