Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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