Defines the position of sorting indicators.
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum SortIndicatorPositionEnum;
Public Enum SortIndicatorPositionEnum
| Name | Description |
|---|---|
| None | No sorting indicators are displayed. |
| Above | Sorting indicators are displayed above the contents. |
| Side | Sorting indicators are displayed next to the contents. |
| Default | The 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. |
Defines the position of sorting indicators.
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;
}
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