Skip to main content

CustomDrawNodeImagesEventArgs.SelectRect Property

Gets the bounding rectangle of the select image.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.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