[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.C1FlexGridBase.IconsStyle

IconsStyle Property

IconsStyle

Gets or sets style of icons that are used in the C1FlexGrid.

Declaration
public IconsStyle IconsStyle { get; set; }
Remarks

Use Office365 for displaying Offic365 theme-like icons, 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 Office365, other themes set it to Default.

Examples

Use Office365-style icons in FlexGrid.

var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
flexGrid.IconsStyle = IconsStyle.Office365;

FlexGridGroupPanel receives icons style from attached FlexGrid.

//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.

C1Theme affects this property.

//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.