[]
        
(Showing Draft Content)

C1.C1Preview.RenderText.-ctor

RenderText Constructor

RenderText()

Initializes a new instance of the RenderText class.

Declaration
public RenderText()

RenderText(string)

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

Declaration
public RenderText(string text)
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)
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)
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)
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)
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)
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)
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)
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.