Back to Devexpress

CustomDrawColumnHeaderEventArgs.SortShapeRect Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawcolumnheadereventargs-e31b7deb.md

latest2.4 KB
Original Source

CustomDrawColumnHeaderEventArgs.SortShapeRect Property

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
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

Column

SortOrder

CaptionRect

Caption

CustomDrawColumnHeaderEventArgs Class

CustomDrawColumnHeaderEventArgs Members

DevExpress.XtraTreeList Namespace