Spread Windows Forms 8.0 Product Documentation
FilterBarDefaultStyle Property
Example 


Gets or sets the filter bar default style of the Spread skin.
Syntax
'Declaration
 
Public Property FilterBarDefaultStyle As NamedStyle
'Usage
 
Dim instance As SpreadSkin
Dim value As NamedStyle
 
instance.FilterBarDefaultStyle = value
 
value = instance.FilterBarDefaultStyle
public NamedStyle FilterBarDefaultStyle {get; set;}
Example
This example creates a default filter bar style.
FarPoint.Win.Spread.NamedStyle backstyle = new FarPoint.Win.Spread.NamedStyle("BlueBack", "FilterBarEnhanced");
backstyle.BackColor = Color.Blue;
fpSpread1.NamedStyles.Add(backstyle);

FarPoint.Win.Spread.SheetView sheetView = fpSpread1.ActiveSheet;
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;

FarPoint.Win.Spread.SpreadSkin skin = new FarPoint.Win.Spread.SpreadSkin();
skin.FilterBarDefaultStyle = backstyle;
fpSpread1.Skin = skin;
Dim backstyle As New FarPoint.Win.Spread.NamedStyle("BlueBack", "FilterBarEnhanced")
backstyle.BackColor = Color.Blue
FpSpread1.NamedStyles.Add(backstyle)

Dim sheetview As FarPoint.Win.Spread.SheetView = FpSpread1.ActiveSheet
sheetview.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar

Dim skin As New FarPoint.Win.Spread.SpreadSkin()
skin.FilterBarDefaultStyle = backstyle
FpSpread1.Skin = skin
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

SpreadSkin Class
SpreadSkin Members

 

 


Copyright © GrapeCity, inc. All rights reserved.