Skip to main content

ToolboxElementBase.Image Property

Gets or sets the icon of the current ToolboxControl element.

Namespace: DevExpress.XtraToolbox

Assembly: DevExpress.XtraBars.v23.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 ToolboxControl element (group or item) icon.

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.

See Also