Icon(String, IconSet, IconStyle, IconPalette, IconSize) Constructor
Initializes a new instance of the Icon class with specified settings.
Namespace: DevExpress.IconLibrary
Assembly: DevExpress.Data.v26.2.dll
Declaration
public Icon(
string id,
IconSet iconSet = IconSet.Default,
IconStyle style = IconStyle.Default,
IconPalette palette = IconPalette.Default,
IconSize size = IconSize.Default
)
Parameters
| Name | Type | Description |
|---|---|---|
| id | String | The icon identifier (the “icon/“ prefix followed by the icon name, for example, “icon/add”). |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| iconSet | IconSet | Default | The icon set. Initializes the Set property. |
| style | DevExpress.IconLibrary.IconStyle | Default | The icon style. Initializes the |
| palette | IconPalette | Default | The icon palette. Initializes the Palette property. |
| size | IconSize | Default | The icon size. Initializes the Size property. |
Remarks
Note
If you decide to use the Icon class constructor to create a new icon, make sure to use the “icon/“ prefix before the icon identifier to reference an SVG icon:
See Also