ToolboxElementBase.Image Property
Use the ToolboxElementBase.ImageOptions property to specify the icon of the current ToolboxControl element.
Namespace: DevExpress.XtraToolbox
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[Browsable(false)]
[DefaultValue(null)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Image Image { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Image | null | An Image object that specifies the Toolbox |
#Remarks
The Image and ToolboxElementBase.Caption properties allow you to specify the icon and caption for the current ToolboxControl element. The ToolboxOptionsView.ItemViewMode option (accessible through the ToolboxControl.OptionsView property) specifies whether the caption, icon or both are displayed. If both, the distance between the caption and icon can be specified using the ToolboxOptionsView.ImageToTextDistance property.
The Image property is equivalent to the ToolboxElementBase.ImageOptions.Image (see ToolboxElementBase.ImageOptions) property.
You can also use the ToolboxControl.GetGroupImage and ToolboxControl.GetItemImage events to provide icons for the ToolboxControl elements.