CustomDrawDayNumberCellEventArgs.Bounds Property
Gets the painted element’s bounding rectangle.
Namespace: DevExpress.XtraEditors.Calendar
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
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.
Related GitHub Examples
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.