Version

GetFilter Method (WorksheetFilterSettings)

Gets the filter that is applied to a specific column.
Syntax
'Declaration
 
Public Function GetFilter( _
   ByVal relativeColumnIndex As Integer _
) As Filter
public Filter GetFilter( 
   int relativeColumnIndex
)

Parameters

relativeColumnIndex
A zero based column index relative to the Region

Return Value

The apllied filter or null if no filter was applied to this column.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionIf the Region was not set.
System.ArgumentOutOfRangeExceptionIf the relativeColumnIndex is outside of the Region.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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