CustomDrawNodeImagesEventArgs.StateRect Property

Gets the bounding rectangle of the state image.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll

Declaration

public Rectangle StateRect { get; }

Property Value

Type Description
Rectangle

A System.Drawing.Rectangle structure that represents the state image’s bounding rectangle.

Remarks

The height of the image’s bounding rectangles is always equal to the corresponding node’s height. The bounding rectangle’s width is specified by the width of the state image. It is determined by the size of images from the image list assigned to the TreeList.StateImageList property. If no image list is assigned to this property, the width of the StateRect rectangle is 0.

See Also