Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / CommandBarInfo Class / Theme Property

In This Topic
    Theme Property
    In This Topic
    Gets or sets the appearance theme of image buttons on the command bar and pager of a Spread component.
    Public Property Theme As ImageButtonTheme
    Dim instance As CommandBarInfo
    Dim value As ImageButtonTheme
    instance.Theme = value
    value = instance.Theme
    public ImageButtonTheme Theme {get; set;}
    The settings do not apply to the pager if the mode is set to number. The ButtonType property must also be set to image button.
    This example sets a theme for the command bar and pager icons.
    FpSpread1.Sheets[0].RowCount = 20;
    FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.NextPrev;
    FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton;
    FpSpread1.Pager.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton;
    FpSpread1.CommandBar.Theme = FarPoint.Web.Spread.ImageButtonTheme.Xp;
    FpSpread1.Sheets(0).RowCount = 20
    FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.NextPrev
    FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton
    FpSpread1.Pager.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton
    FpSpread1.CommandBar.Theme = FarPoint.Web.Spread.ImageButtonTheme.Xp
    See Also