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.SelectRect Property

Gets the bounding rectangle of the select image.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public Rectangle SelectRect { get; }

#Property Value

Type Description
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