GalleryDropDown.GalleryCustomDrawItemText Event
In This Article
Enables the text of gallery items in the GalleryDropDown control’s gallery to be painted manually.
Namespace: DevExpress.XtraBars.Ribbon
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DXCategory("Events")]
public event GalleryItemCustomDrawEventHandler GalleryCustomDrawItemText
#Event Data
The GalleryCustomDrawItemText event's data class is GalleryItemCustomDrawEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Bounds | Gets the bounding rectangle of the Gallery item currently being painted. |
Cache | Gets an object which specifies the storage for the most used pens, fonts and brushes. |
Gallery |
Gets the Gallery that contains the processed Gallery item.
Inherited from Gallery |
Handled | Gets or sets whether an event was handled. If it was handled default painting isn’t required. |
In |
For In-Ribbon galleries, gets the bar item link that displays the current gallery.
Inherited from Gallery |
Item |
Gets the Gallery item currently being processed.
Inherited from Gallery |
Item |
Gets the information which is required to paint a Gallery item. |
The event data class exposes the following methods:
Method | Description |
---|---|
Draw |
Paints the required HTML template inside an element that raised this event. The context parameter allows you to assign an object that transfers mouse events to template elements. |
Draw |
Paints the required HTML template inside an element that raised this event. |
#Remarks
This event is equivalent to the BaseGallery.CustomDrawItemText event of the GalleryDropDown.Gallery object. See the BaseGallery.CustomDrawItemText topic for more information.
See Also