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

GalleryItemCustomDrawEventArgs(GraphicsCache, BaseGallery, Object, Rectangle) Constructor

In This Article

Initializes a new instance of the GalleryItemCustomDrawEventArgs class.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public GalleryItemCustomDrawEventArgs(
    GraphicsCache cache,
    BaseGallery gallery,
    object itemInfo,
    Rectangle bounds
)

#Parameters

Name Type Description
cache GraphicsCache

A GraphicsCache object which specifies the storage for the most used pens, fonts and brushes. This value is assigned to the GalleryItemCustomDrawEventArgs.Cache property.

gallery BaseGallery

A BaseGallery descendant which represents the Ribbon Gallery whose item is currently being processed. This value is assigned to the GalleryItemEventArgs.Gallery property.

itemInfo Object

An object which provides information required to paint a Gallery item. This value is assigned to the GalleryItemCustomDrawEventArgs.ItemInfo property.

bounds Rectangle

A Rectangle structure which represents the Gallery item’s boundaries. This value is assigned to the GalleryItemCustomDrawEventArgs.Bounds property.

See Also