Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ColumnClass Constructor

Initializes a new instance of the ColumnClass class.

Class: ColumnClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ColumnClass();
public ColumnClass(
    int Width,
    int Position,
    bool Resizable,
    bool Reorderable,
    bool KeepPosition,
    int MinWidth,
    int MaxWidth,
    bool MergeWithNextDefault,
    bool MergeWithLowerDefault,
    bool AllowMergeFromPreviousDefault,
    bool AllowMergeFromUpperDefault,
    bool ShowToolTips,
    bool ShowHierarchy,
    Color BackColor,
    Color ForeColor,
    Color BackColorSelected,
    Color ForeColorSelected,
    GridLinesOptStyleEnum GridLinesStyle );
Public Sub New()
Public Sub New(
    ByVal Width As Integer,
    ByVal Position As Integer,
    ByVal Resizable As Boolean,
    ByVal Reorderable As Boolean,
    ByVal KeepPosition As Boolean,
    ByVal MinWidth As Integer,
    ByVal MaxWidth As Integer,
    ByVal MergeWithNextDefault As Boolean,
    ByVal MergeWithLowerDefault As Boolean,
    ByVal AllowMergeFromPreviousDefault As Boolean,
    ByVal AllowMergeFromUpperDefault As Boolean,
    ByVal ShowToolTips As Boolean,
    ByVal ShowHierarchy As Boolean,
    ByVal BackColor As Color,
    ByVal ForeColor As Color,
    ByVal BackColorSelected As Color,
    ByVal ForeColorSelected As Color,
    ByVal GridLinesStyle As GridLinesOptStyleEnum )

Parameters

Width

Defines the column's width.

Position

Defines the column's display position (ColumnsClass.Position property).

Resizable

Defines whether the column is resizable (ColumnsClass.Resizable property).

Reorderable

Defines whether the column is reorderable (ColumnsClass.Reorderable property).

KeepPosition

Defines whether the column must remain in its current position and cannot be reordered (ColumnsClass.KeepPosition property).

MinWidth

Defines the column's minimum width (ColumnsClass.MinWidth property).

MaxWidth

Defines the column's maximum width (ColumnsClass.MaxWidth property).

MergeWithNextDefault

Defines the default for new cells, whether cells in this column merge with cells in the next column (ColumnsClass.MergeWithNextDefault property).

MergeWithLowerDefault

Defines the default for new cells, whether cells in this column merge with cells below, in the same column (ColumnsClass.MergeWithLowerDefault property).

AllowMergeFromPreviousDefault

Defines the default for new cells, whether cells in this column allow merging with cells in the previous column (ColumnsClass.AllowMergeFromPreviousDefault property).

AllowMergeFromUpperDefault

Defines the default for new cells, whether cells in this column allow merging with cells above, in the same column (ColumnsClass.AllowMergeFromUpperDefault property).

ShowToolTips

Defines whether tooltips are shown for cells in this column (ColumnsClass.ShowToolTips property).

ShowHierarchy

Defines whether hierarchy information is shown in this column (ColumnsClass.ShowHierarchy property).

BackColor

Defines the default background color for cells in this column (ColumnsClass.BackColor property).

ForeColor

Defines the default foreground color for cells in this column (ColumnsClass.ForeColor property).

BackColorSelected

Defines the default background color for selected cells in this column (ColumnsClass.BackColorSelected property).

ForeColorSelected

Defines the default foreground color for selected cells in this column (ColumnsClass.ForeColorSelected property).

GridLinesStyle

Defines the grid lines style (ColumnsClass.GridLines property).

Comments

Initializes a new instance of the ColumnClass class.

See Also ColumnClass Class | Classes | SftTree/NET 2.0