FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / IconsStyle Property
Example

In This Topic
    IconsStyle Property (C1FlexGridBase)
    In This Topic
    Gets or sets style of icons that are used in the C1FlexGrid.
    Syntax
    'Declaration
     
    
    Public Property IconsStyle As IconsStyle
    public IconsStyle IconsStyle {get; set;}
    Remarks

    Use IconsStyle.Office365 for displaying Offic365 theme-like icons, IconsStyle.Default otherwise.

    C1FlexGrid.Tree and C1FlexGridGroupPanel use the same icons style as C1FlexGrid.

    This property can be customized through c1theme. Set C1FlexGrid\Icons Style node value to set up this property with c1theme applying. Office365 themes set IconsStyle to IconsStyle.Office365, other themes set it to IconsStyle.Default.

    Example
    Use Office365-style icons in FlexGrid.

    FlexGridGroupPanel receives icons style from attached FlexGrid.

    C1Theme affects this property.

    var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
    flexGrid.IconsStyle = IconsStyle.Office365;
    //Install the c1.Win.FlexGrud.GroupPanel nuget package to be able to use C1FlexGridGroupPanel.
    var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
    flexGrid.IconsStyle = IconsStyle.Office365;
    var flexGridGroupPanel = new C1.Win.C1FlexGrid.C1FlexGridGroupPanel();
    flexGridGroupPanel.FlexGrid = flexGrid; //flexGridGroupPanel's ClearButtons will be shown with Office365 icons.
    flexGrid.IconsStyle = IconsStyle.Default; //flexGridGroupPanel's ClearButtons will be shown with default icons.
    //Install the c1.Win.Themes nuget package to be able to use C1ThemeController.
    var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
    var c1ThemeController = new C1.Win.C1Themes.C1ThemeController();
    c1ThemeController1.SetTheme(this.flexGrid, "Office365White"); //flexGrid.IconsStyle = IconsStyle.Office365. The same for other Office365 themes.
    c1ThemeController1.SetTheme(this.flexGrid, "Material"); //flexGrid.IconsStyle = IconsStyle.Default. The same for other non-Office365 themes.
    See Also