Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

RowHeader Property, ItemClass Class

Returns the item's row header.

Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public RowHeaderClass RowHeader { get; }
Public ReadOnly Property RowHeader As RowHeaderClass

Value

The row header.

Comments

Returns the item's row header.

An instance of the RowHeaderClass class represents one item's row header in a SftTree/NET control. Numerous row header specific properties and methods can be accessed using the returned object.

Certain default properties and behavior for row headers can be defined using the control's SftTree.RowHeaders property.

Examples

C#

                for (int c = 0; c < sftTree1.Columns.Count; ++c) {
                    cell = sftTree1.Footers[r, c]; // access each header cell
                    cell.Text = "Column " + c.ToString(); // set the title
                }
            }
            ItemClass item;
            for (int i = 0; i < 10; ++i) {
                item = sftTree1.ItemCollection.Add(new string[] { "Text 0", "Text 1", "Text 2", "Text 3" });
                item.RowHeader.Text = "Row " + i.ToString();
            }
            // End of initialization

            // In this sample, vertical merging is based on empty subordinate cells.
            sftTree1.MergeStyle = MergeStyleEnum.EmptyCells;

            // Merge all cells in the column header vertically (in the second column)

VB.NET

        For c As Integer = 0 To sftTree1.Columns.Count - 1
            cell = sftTree1.Footers(r, c) ' access each header cell
            cell.Text = "Column " + c.ToString() ' set the title
        Next
    Next
    Dim item As ItemClass
    For i As Integer = 0 To 9
        item = sftTree1.ItemCollection.Add(New String() {"Text 0", "Text 1", "Text 2", "Text 3"})
        item.RowHeader.Text = "Row " & i.ToString()
    Next
    ' End of initialization

    ' In this sample, vertical merging is based on empty subordinate cells.
    sftTree1.MergeStyle = MergeStyleEnum.EmptyCells

    ' Merge all cells in the column header vertically (in the second column)

See Also ItemClass Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.