Spread Windows Forms 12.0 Product Documentation
GetColumnSortIndicator Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetColumnSortIndicator Method
Column index
Gets the sort indicator for the specified column on this sheet.
Syntax
'Declaration
 
Public Function GetColumnSortIndicator( _
   ByVal column As Integer _
) As SortIndicator
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim value As SortIndicator
 
value = instance.GetColumnSortIndicator(column)
public SortIndicator GetColumnSortIndicator( 
   int column
)

Parameters

column
Column index

Return Value

SortIndicator setting that determines how the sort indicator is displayed
Example
This example illustrates the use of this member by returning the sort indicator for the specified column header.
fpSpread1.ActiveSheet.SetColumnSortIndicator(0, FarPoint.Win.Spread.Model.SortIndicator.Descending); 
FarPoint.Win.Spread.Model.SortIndicator si;
si = fpSpread1.ActiveSheet.GetColumnSortIndicator(0);
listBox1.Items.Add(si.ToString());
FpSpread1.ActiveSheet.SetColumnSortIndicator(0, FarPoint.Win.Spread.Model.SortIndicator.Descending)
Dim si As FarPoint.Win.Spread.Model.SortIndicator
si = FpSpread1.ActiveSheet.GetColumnSortIndicator(0)
ListBox1.Items.Add(si.ToString())
See Also

Reference

SheetView Class
SheetView Members
SetColumnSortIndicator Method

User-Task Documentation

Managing Sorting