Back to Devexpress

CustomDrawNodeImagesEventArgs.SelectRect Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawnodeimageseventargs-a6216e2a.md

latest2.3 KB
Original Source

CustomDrawNodeImagesEventArgs.SelectRect Property

Gets the bounding rectangle of the select image.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
Rectangle

A System.Drawing.Rectangle structure representing the bounding rectangle of the select image.

|

Remarks

Select images are supposed to be painted by handling the TreeList.CustomDrawNodeImages event only if the TreeList.SelectImageList property is not null ( Nothing in Visual Basic). The width of the rectangle returned by the SelectRect property is equal to the width of the images from the image list. Otherwise, the width of this rectangle is 0.

The height of the SelectRect rectangle is always equal to the corresponding node’s height.

See Also

StateRect

SelectImageLocation

StateImageLocation

SelectImageList

CustomDrawNodeImagesEventArgs Class

CustomDrawNodeImagesEventArgs Members

DevExpress.XtraTreeList Namespace