Back to Devexpress

CustomDrawNodeImagesEventArgs.StateRect Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawnodeimageseventargs-895599b0.md

latest2.1 KB
Original Source

CustomDrawNodeImagesEventArgs.StateRect Property

Gets the bounding rectangle of the state image.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public Rectangle StateRect { get; }
vb
Public ReadOnly Property StateRect As Rectangle

Property Value

TypeDescription
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

StateImageLocation

SelectImageLocation

SelectRect

CustomDrawNodeImagesEventArgs Class

CustomDrawNodeImagesEventArgs Members

DevExpress.XtraTreeList Namespace