Spread Windows Forms 11.0 Product Documentation
AutoFilterMode Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : AutoFilterMode Enumeration
Specifies settings for the automatic filter.
Syntax
'Declaration
 
Public Enum AutoFilterMode 
   Inherits System.Enum
'Usage
 
Dim instance As AutoFilterMode
public enum AutoFilterMode : System.Enum 
Members
MemberDescription
EnhancedContextMenuDisplays a context menu for the automatic filter
FilterBarDisplays a filter bar for the automatic filter
FilterGadgetDisplays a filter gadget for the automatic filter
Example
This example uses the AutoFilterMode enumeration.
//Basic Filter Bar
FarPoint.Win.Spread.SheetView sheetView = fpSpread1.ActiveSheet;
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
sheetView.FilterBar.Height = 30;
sheetView.FilterBarHeaderStyle.Border = new FarPoint.Win.DoubleLineBorder(Color.Red);
sheetView.FilterBarHeaderStyle.BackColor = Color.Yellow;  
'Basic Filter Bar
Dim sheetView As FarPoint.Win.Spread.SheetView = FpSpread1.ActiveSheet
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
sheetView.FilterBar.Height = 30
sheetView.FilterBarHeaderStyle.Border = New FarPoint.Win.DoubleLineBorder(Color.Red)
sheetView.FilterBarHeaderStyle.BackColor = Color.Yellow
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.AutoFilterMode

See Also

Reference

FarPoint.Win.Spread Namespace