Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FilterBar Class / DefaultStyle Property

In This Topic
    DefaultStyle Property (FilterBar)
    In This Topic
    Gets or sets the default style.
    Public Property DefaultStyle As StyleInfo
    Dim instance As FilterBar
    Dim value As StyleInfo
    instance.DefaultStyle = value
    value = instance.DefaultStyle
    public StyleInfo DefaultStyle {get; set;}

    Property Value

    The default style.
    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