Skip to main content
A newer version of this page is available. .

CustomDrawDayNumberCellEventArgs.Bounds Property

Gets the painted element’s bounding rectangle.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

public Rectangle Bounds { get; }

Property Value

Type Description
Rectangle

A Rectangle structure specifying the boundaries of the painted element.

Remarks

To paint an object you must define a Graphics object used to paint and a rectangle specifying the object’s boundaries. When custom painting, you can access these values via the CustomDrawDayNumberCellEventArgs.Graphics and Bounds properties of the event parameter.

See Also