Skip to main content

GalleryItemCustomDrawEventArgs(GraphicsCache, BaseGallery, Object, Rectangle) Constructor

Initializes a new instance of the GalleryItemCustomDrawEventArgs class.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.1.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