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

Gets the location of the select image’s top-left corner.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public Point SelectImageLocation { get; }

#Property Value

Type Description
Point

A System.Drawing.Point structure that represents the top-left point of the select image.

#Remarks

The boundaries of the select image can be determined via the CustomDrawNodeImagesEventArgs.SelectRect property. Note, that the top-left corner of this rectangle doesn’t necessarily coincide with the SelectImageLocation property value. The reason is that bounding rectangle’s height is equal to the corresponding node’s height, while the image is vertically centered within its bounding rectangle. Image height, in turn, is specified by size of images from the ImageList component assigned to the TreeList.SelectImageList property. If this property value is null (Nothing in Visual Basic), select images are not supposed to be painted. The SelectImageLocation property returns Point.Empty in such an instance.

Note: node height is calculated as the maximum of the font size applied to the node, its node button height and its images height.

See Also