Skip to main content
A newer version of this page is available. .

CustomDrawNodeImagesEventArgs.SelectImageLocation Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

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