[]
Initializes a new instance of a TextElement with a given style and contents.
public TextElement(Style style, string text)
Type | Name | Description |
---|---|---|
Style | style | Style used to measure and render the TextElement, |
string | text | String displayed in the TextElement, |
Initializes a new instance of a TextElement with a given style.
public TextElement(Style style)
Type | Name | Description |
---|---|---|
Style | style | Style used to measure and render the TextElement, |
Initializes a new instance of a TextElement with a given text.
public TextElement(string text)
Type | Name | Description |
---|---|---|
string | text | String displayed in the TextElement, |
Initializes a new instance of an empty TextElement.
public TextElement()