CustomDrawEventArgs.Bounds Property

Gets the painted element’s bounding rectangle.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public Rectangle Bounds { get; }

Property Value

Type Description

A System.Drawing.Rectangle structure specifying the boundaries of the painted element.


There are two basic things required to paint an object. These are a System.Drawing.Graphics object used to paint and a rectangle specifying the object’s boundaries. When performing custom painting, you can access these values via the CustomDrawEventArgs.Graphics and Bounds properties of the event parameter.

Use the Bounds property to locate painted text, images, etc. inside the painted element’s area.

See Also