[]
Initializes a new instance of the RenderText class.
public RenderText()
Public Sub New()
Initializes a new instance of the RenderText class, assigning the Text property.
public RenderText(string text)
Public Sub New(text As String)
| 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)
Public Sub New(text As String, style As 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)
Public Sub New(text As String, font As 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)
Public Sub New(text As String, font As Font, textColor As Color)
| 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)
Public Sub New(text As String, font As Font, textColor As Color, horzAlign As AlignHorzEnum)
| 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)
Public Sub New(text As String, font As Font, horzAlign As AlignHorzEnum)
| 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)
Public Sub New(text As String, horzAlign As AlignHorzEnum)
| 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)
Public Sub New(text As String, parentStyle As Style, ambientParentStyle As Style)
| 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. |