Spread Windows Forms 12.0 Product Documentation
GetFilteredColumnIndexes Method (DefaultRowFilter)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultRowFilter Class : GetFilteredColumnIndexes Method
Gets an array of column indexes where row filters exist.
Syntax
'Declaration
 
Public Function GetFilteredColumnIndexes() As Integer()
'Usage
 
Dim instance As DefaultRowFilter
Dim value() As Integer
 
value = instance.GetFilteredColumnIndexes()
public int[] GetFilteredColumnIndexes()

Return Value

Integer array of column indexes
Example
This example returns an array of column indexes where row filters exist.
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;

int[] i = fpSpread1.ActiveSheet.RowFilter.GetFilteredColumnIndexes;

MessageBox.Show("The number of columns filtered is " + i.Length.ToString());
FpSpread1.ActiveSheet.Columns(0).AllowAutoFilter = True
Dim i As Integer() = FpSpread1.ActiveSheet.RowFilter.GetFilteredColumnIndexes
MessageBox.Show("The number of columns filtered is " & i.Length.ToString())
See Also

Reference

DefaultRowFilter Class
DefaultRowFilter Members