Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawNodeImagesEventArgs.StateRect Property

Gets the bounding rectangle of the state image.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#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