Back to Devexpress

ToolboxControl.GetGroupImage Event

windowsforms-devexpress-dot-xtratoolbox-dot-toolboxcontrol-fbbac003.md

latest2.0 KB
Original Source

ToolboxControl.GetGroupImage Event

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

Namespace : DevExpress.XtraToolbox

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event ToolboxGetGroupImageEventHandler GetGroupImage
vb
<DXCategory("Events")>
Public Event GetGroupImage As ToolboxGetGroupImageEventHandler

Event Data

The GetGroupImage event's data class is DevExpress.XtraToolbox.ToolboxGetGroupImageEventArgs.

Remarks

You can specify the ToolboxGroup icon using the ToolboxElementBase.ImageOptions property. If the icon is not specified for a particular group using this property, the GetGroupImage event fires when the group is about to displayed for the first time and allows you to provide an icon. The ToolboxGetItemImageEventArgs.Item property allows you to determine the group being processed. The BestImageSize property returns the best suitable icon size. Use the Image property to specify an icon for the group.

See Also

ImageOptions

GetItemImage

ToolboxControl Class

ToolboxControl Members

DevExpress.XtraToolbox Namespace