Spread for ASP.NET 11 Product Documentation
DefaultStyle Property (FilterBar)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FilterBar Class : DefaultStyle Property
Gets or sets the default style.
Syntax
'Declaration
 
Public Property DefaultStyle As StyleInfo
'Usage
 
Dim instance As FilterBar
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
public StyleInfo DefaultStyle {get; set;}

Property Value

The default style.
Example
This example sets the color for the filter bar.
//Basic Filter Bar
FarPoint.Web.Spread.SheetView sheetView = FpSpread1.ActiveSheetView;
sheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.FilterBar;
sheetView.FilterBar.Height = 30;
sheetView.FilterBar.DefaultStyle.BackColor = Color.Beige;
'Basic Filter Bar
Dim sheetView As FarPoint.Web.Spread.SheetView = FpSpread1.ActiveSheetView
sheetView.AutoFilterMode = FarPoint.Web.Spread.AutoFilterMode.FilterBar
sheetView.FilterBar.Height = 30
sheetView.FilterBar.DefaultStyle.BackColor = Color.Beige
See Also

Reference

FilterBar Class
FilterBar Members