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

ListBoxDrawItemEventArgs.Bounds Property

Gets the bounding rectangle of the item being painted.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public Rectangle Bounds { get; }

Property Value

Type Description
Rectangle

A Rectangle structure specifying the painted item’s boundaries.

Remarks

To paint an item displayed within the list box control you must define the Graphics object used to paint it and provide the rectangle specifying the item’s boundaries. When painting, you can access these values via the event parameter’s ListBoxDrawItemEventArgs.Graphics and Bounds properties.

The following code snippets (auto-collected from DevExpress Examples) contain references 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