Spread Windows Forms 12.0 Product Documentation
SortState Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : SortState Enumeration
Specifies the sorting state for the current column so the column renderer knows which sorting image to draw.
Syntax
'Declaration
 
Public Enum SortState 
   Inherits System.Enum
'Usage
 
Dim instance As SortState
public enum SortState : System.Enum 
Members
MemberDescription
AscendingSorted in ascending order.
AscendingDisabledSorted in ascending order, and the control is disabled.
DescendingSorted in descending order.
DescendingDisabledSorted in descending order, and the control is disabled.
NoneSorting is not enabled.
UnsortedSorting is available, but not currently in use.
UnsortedDisabledSorting is not enabled, and the control is disabled.
Example
This example uses the SortState enumeration.
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(Color.Lavender, Color.LavenderBlush, new Font("Ms Sans Serif", 10), CellHorizontalAlignment.Center, CellVerticalAlignment.Center, true, true, Color.Yellow, Color.Aqua, Color.Bisque, Color.Azure, Win.VisualStyles.On, SortState.None, FilterState.None, true, true);
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
si.SetAppearance(appr);
fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si);
Dim appr As New FarPoint.Win.Spread.Appearance(Color.Lavender, Color.LavenderBlush, New Font("Ms Sans Serif", 10), CellHorizontalAlignment.Center, CellVerticalAlignment.Center, True, True, Color.Yellow, Color.Aqua, Color.Bisque, Color.Azure, Win.VisualStyles.On, SortState.None, FilterState.None, True, True)
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si)
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.SortState

See Also

Reference

FarPoint.Win.Spread Namespace
SortState Property (Appearance Class)

User-Task Documentation

Managing Sorting