[]
Initializes a new instance of the RenderText class.
public RenderText()
Initializes a new instance of the RenderText class, assigning the Text property.
public RenderText(string text)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Initializes a new instance of the RenderText class, assigning the Text property and style.
public RenderText(string text, Style style)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Style | style | A Style to use (the AssignNonInheritedFrom(Style) method is used to copy the specified style to the current object's Style). |
Initializes a new instance of the RenderText class, assigning the Text property and font.
public RenderText(string text, Font font)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Font | font | The font used to render the text. |
Initializes a new instance of the RenderText class, assigning the Text property, font and text color.
public RenderText(string text, Font font, Color textColor)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Font | font | The font used to render the text. |
Color | textColor | The text color used to render the text. |
Initializes a new instance of the RenderText class, assigning the Text property, font, text color and alignment.
public RenderText(string text, Font font, Color textColor, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Font | font | The font used to render the text. |
Color | textColor | The text color used to render the text. |
AlignHorzEnum | horzAlign | The horizontal text alignment. |
Initializes a new instance of the RenderText class, assigning the Text property, font and text alignment.
public RenderText(string text, Font font, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Font | font | The font used to render the text. |
AlignHorzEnum | horzAlign | The horizontal text alignment. |
Initializes a new instance of the RenderText class, assigning the Text property, and text alignment.
public RenderText(string text, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
AlignHorzEnum | horzAlign | The horizontal text alignment. |
Initializes a new instance of the RenderText class, assigning the Text property, and the parent styles.
public RenderText(string text, Style parentStyle, Style ambientParentStyle)
Type | Name | Description |
---|---|---|
string | text | A string assigned to the Text property. |
Style | parentStyle | The style assigned to the Parent property of the current object's style. |
Style | ambientParentStyle | The style assigned to the AmbientParent property of the current object's style. |