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.v19.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Bounds property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also