Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Collection Property, ColumnsClass Class

Returns the column collection.

Class: ColumnsClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ColumnCollectionClass Collection { get; }
Public ReadOnly Property Collection As ColumnCollectionClass

Value

The column collection.

Comments

Returns the column collection.

Examples

C#

                item.RowHeader.Text = "Row " + i.ToString();
            }
            // End of initialization

            // In this sample, vertical merging is based on identical cell text.
            sftTree1.MergeStyle = MergeStyleEnum.SameText;

            // set merging default for each column
            foreach (ColumnClass col in sftTree1.Columns.Collection) {
                col.MergeWithLowerDefault = true;
                col.AllowMergeFromUpperDefault = true;
            }
            // set merging default for headers and footers
            sftTree1.Headers.MergeWithLowerDefault = true;
            sftTree1.Headers.AllowMergeFromUpperDefault = true;
            sftTree1.Footers.MergeWithLowerDefault = true;

VB.NET

        item.RowHeader.Text = "Row " & i.ToString()
    Next
    ' End of initialization

    ' In this sample, vertical merging is based on identical cell text.
    sftTree1.MergeStyle = MergeStyleEnum.SameText

    ' set merging default for each column
    For Each col As ColumnClass In sftTree1.Columns.Collection
        col.MergeWithLowerDefault = True
        col.AllowMergeFromUpperDefault = True
    Next
    ' set merging default for headers and footers
    sftTree1.Headers.MergeWithLowerDefault = True
    sftTree1.Headers.AllowMergeFromUpperDefault = True
    sftTree1.Footers.MergeWithLowerDefault = True

See Also ColumnsClass Class | Classes | SftTree/NET 2.0