Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

TextPartClass Constructor

Initializes a new instance of the TextPartClass class.

Class: TextPartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public TextPartClass();
public TextPartClass( string Text );
public TextPartClass(
    string Text,
    LineStyleEnum TextStyle,
    HAlignmentOptionalEnum HAlign,
    VAlignmentOptionalEnum VAlign,
    Color ForeColor,
    Color BackColor,
    Color ForeColorSelected,
    Color BackColorSelected,
    Font TextFont,
    StringFormatFlags Format );
Public Sub New()
Public Sub New( ByVal Text As String )
Public Sub New(
    ByVal Text As String,
    ByVal TextStyle As LineStyleEnum,
    ByVal HAlign As HAlignmentOptionalEnum,
    ByVal VAlign As VAlignmentOptionalEnum,
    ByVal ForeColor As Color,
    ByVal BackColor As Color,
    ByVal ForeColorSelected As Color,
    ByVal BackColorSelected As Color,
    ByVal TextFont As Font,
    ByVal Format As StringFormatFlags )

Parameters

Text

Defines the Text property.

TextStyle

Defines the TextPartClass.TextStyle property.

HAlign

Defines the horizontal alignment (GenericPartClass.HAlign property) within the part's available space.

VAlign

Defines the vertical alignment (GenericPartClass.VAlign property) within the part's available space.

ForeColor

Defines the string's foreground color (TextPartClass.ForeColor property).

BackColor

Defines the string's background color (TextPartClass.BackColor property).

ForeColorSelected

Defines the string's foreground color, when the containing item or cell is selected (TextPartClass.ForeColorSelected property).

BackColorSelected

Defines the string's background color, when the containing item or cell is selected (TextPartClass.BackColorSelected property).

TextFont

Defines the font used to render the string (TextPartClass.Font property).

Format

Defines display and layout information to render the string (TextPartClass.Format property).

Comments

Initializes a new instance of the TextPartClass class.

See Also TextPartClass Class | Classes | SftTree/NET 2.0