Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

SortIndicatorPositionEnum Enumeration

Defines the position of sorting indicators.

Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public enum SortIndicatorPositionEnum;
Public Enum SortIndicatorPositionEnum

Values

NameDescription
NoneNo sorting indicators are displayed.
AboveSorting indicators are displayed above the contents.
SideSorting indicators are displayed next to the contents.
DefaultThe default value is determined by a containing object or by the operating system used. For all operating systems up to and including Windows XP and Windows Server 2003, the default is SortIndicatorPositionEnum.Side. For Windows Vista and above, the default is SortIndicatorPositionEnum.Above.

Comments

Defines the position of sorting indicators.

Examples

C#

            ip.HAlign = HAlignmentOptionalEnum.Center;
            cell.Parts.Add(ip);
            tp = new TextPartClass("Third part");
            tp.HAlign = HAlignmentOptionalEnum.Left;
            cell.Parts.Add(tp);

            // Set a sorting indicator in the first column header
            cell = sftTree1.Headers[0,0];
            cell.SortIndicatorPosition = SortIndicatorPositionEnum.Side;
            cell.SortStatus = SortStatusEnum.Ascending;

            sftTree1.Columns.MakeOptimal(0, false);
            sftTree1.RecalcHorizontalExtent();
            sftTree1.Initializing = false;
        }

VB.NET

    ip.HAlign = HAlignmentOptionalEnum.Center
    cell.Parts.Add(ip)
    tp = New TextPartClass("Third part")
    tp.HAlign = HAlignmentOptionalEnum.Left
    cell.Parts.Add(tp)

    ' Set a sorting indicator in the first column header
    cell = sftTree1.Headers(0, 0)
    cell.SortIndicatorPosition = SortIndicatorPositionEnum.Side
    cell.SortStatus = SortStatusEnum.Ascending

    sftTree1.Columns.MakeOptimal(0, False)
    sftTree1.RecalcHorizontalExtent()
    sftTree1.Initializing = False
End Sub

See Also | Classes | SftTree/NET 2.0