Skip to main content

CustomDrawColumnHeaderEventArgs.SortShapeRect Property

Gets the rectangle where the image indicating sort order is intended to be drawn.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public Rectangle SortShapeRect { get; }

Property Value

Type Description
Rectangle

A System.Drawing.Rectangle structure specifying the sort order image’s bounding rectangle.

Remarks

The are two things which can be displayed in a column header when custom drawing is not implemented. These are column caption text and an image which indicates the order of sorting implemented by column values. The TreeList.CustomDrawColumnHeader event helps you paint these elements. Its parameter properties provide you two rectangles where the caption text and an image are designed to be painted. Use the CustomDrawColumnHeaderEventArgs.CaptionRect and SortShapeRect properties to obtain these rectangles.

See Also