CustomDrawColumnHeaderEventArgs.SortShapeRect Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.2.dll


public Rectangle SortShapeRect { get; }
Public ReadOnly Property SortShapeRect As Rectangle

Property Value

Type Description

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


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