Spread Windows Forms 6.0 Product Documentation
GetColumnSortIndicator Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetColumnSortIndicator Method


column
Column index

Glossary Item Box

Gets the sort indicator for the specified column on this sheet.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnSortIndicator( _
   ByVal column As Integer _
) As SortIndicator
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As SortIndicator
 
value = instance.GetColumnSortIndicator(column)
C# 
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.
C#Copy Code
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());
Visual BasicCopy Code
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())

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.