ToolboxControl.GetItemImage Event

Fires when a ToolboxItem is about to displayed for the first time and allows you to provide a custom item icon.

Namespace: DevExpress.XtraToolbox

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Events")]
public event ToolboxGetItemImageEventHandler GetItemImage
<DXCategory("Events")>
Public Event GetItemImage As ToolboxGetItemImageEventHandler

Event Data

The GetItemImage event's data class is DevExpress.XtraToolbox.ToolboxGetItemImageEventArgs.

Remarks

You can specify the ToolboxItem icon using the ToolboxElementBase.Image property. If the icon is not specified for a particular item using this property, the GetItemImage event fires when the item is about to displayed for the first time and allows you to provide an icon. The ToolboxGetItemImageEventArgs.Item property allows you to determine the item being processed. The BestImageSize property returns the best suitable icon size, which is the maximum icon size of the icons already provided for other items. The Image property allows you to specify an icon for the item being processed.

Implements

DevExpress.XtraToolbox.IToolboxControl.GetItemImage
See Also