[]
        
(Showing Draft Content)

C1.C1Preview.RenderText.-ctor

RenderText Constructor

RenderText()

Initializes a new instance of the RenderText class.

Declaration
public RenderText()
Public Sub New()

RenderText(string)

Initializes a new instance of the RenderText class, assigning the Text property.

Declaration
public RenderText(string text)
Public Sub New(text As String)
Parameters
Type Name Description
string text

A string assigned to the Text property.

RenderText(string, Style)

Initializes a new instance of the RenderText class, assigning the Text property and style.

Declaration
public RenderText(string text, Style style)
Public Sub New(text As String, style As Style)
Parameters
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).

RenderText(string, Font)

Initializes a new instance of the RenderText class, assigning the Text property and font.

Declaration
public RenderText(string text, Font font)
Public Sub New(text As String, font As Font)
Parameters
Type Name Description
string text

A string assigned to the Text property.

Font font

The font used to render the text.

RenderText(string, Font, Color)

Initializes a new instance of the RenderText class, assigning the Text property, font and text color.

Declaration
public RenderText(string text, Font font, Color textColor)
Public Sub New(text As String, font As Font, textColor As Color)
Parameters
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.

RenderText(string, Font, Color, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, font, text color and alignment.

Declaration
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)
Parameters
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.

RenderText(string, Font, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, font and text alignment.

Declaration
public RenderText(string text, Font font, AlignHorzEnum horzAlign)
Public Sub New(text As String, font As Font, horzAlign As AlignHorzEnum)
Parameters
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.

RenderText(string, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, and text alignment.

Declaration
public RenderText(string text, AlignHorzEnum horzAlign)
Public Sub New(text As String, horzAlign As AlignHorzEnum)
Parameters
Type Name Description
string text

A string assigned to the Text property.

AlignHorzEnum horzAlign

The horizontal text alignment.

RenderText(string, Style, Style)

Initializes a new instance of the RenderText class, assigning the Text property, and the parent styles.

Declaration
public RenderText(string text, Style parentStyle, Style ambientParentStyle)
Public Sub New(text As String, parentStyle As Style, ambientParentStyle As Style)
Parameters
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.