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


Glossary Item Box

Gets an array of column indexes where row filters exist.

Syntax

Visual Basic (Declaration) 
Public Function GetFilteredColumnIndexes() As Integer()
Visual Basic (Usage)Copy Code
Dim instance As DefaultRowFilter
Dim value() As Integer
 
value = instance.GetFilteredColumnIndexes()
C# 
public int[] GetFilteredColumnIndexes()

Return Value

Integer array of column indexes

Example

This example returns an array of column indexes where row filters exist.
C#Copy Code
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;

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

MessageBox.Show("The number of columns filtered is " + i.Length.ToString());
Visual BasicCopy Code
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())

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.