Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ButtonPartClass Constructor

Initializes a new instance of the ButtonPartClass class.

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

Syntax

public ButtonPartClass();
public ButtonPartClass(
    bool Pressed,
    HAlignmentOptionalEnum HAlign,
    VAlignmentOptionalEnum VAlign,
    bool Enabled,
    bool Toggle,
    GadgetAppearanceEnum Style,
    Image Image,
    string Text,
    Font TextFont,
    Color ForeColor );
Public Sub New()
Public Sub New(
    ByVal Pressed As Boolean,
    ByVal HAlign As HAlignmentOptionalEnum,
    ByVal VAlign As VAlignmentOptionalEnum,
    ByVal Enabled As Boolean,
    ByVal Toggle As Boolean,
    ByVal Style As GadgetAppearanceEnum,
    ByVal Image As Image,
    ByVal Text As String,
    ByVal TextFont As Font,
    ByVal ForeColor As Color )

Parameters

Pressed

Defines whether the button is currently pressed (ButtonPartClass.Pressed 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.

Enabled

Defines whether the button is enabled (ButtonPartClass.Enabled property). A disabled button cannot be clicked and appears grayed.

Toggle

Defines whether the button is a toggle button (ButtonPartClass.Toggle property). A toggle button remains pressed once it is clicked.

Style

Defines the button appearance (ButtonPartClass.Appearance property).

Image

Defines the button image (ButtonPartClass.Image property).

Text

Defines the button's text (ButtonPartClass.Text property).

TextFont

Defines the button's text font (ButtonPartClass.Font property) or null/Nothing to use the default font.

ForeColor

Defines the button's text color (ButtonPartClass.ForeColor property).

Comments

Initializes a new instance of the ButtonPartClass class.

See Also ButtonPartClass Class | Classes | SftTree/NET 2.0