Back to Devexpress

CustomDrawColumnHeaderEventArgs.CaptionRect Property

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

latest2.3 KB
Original Source

CustomDrawColumnHeaderEventArgs.CaptionRect Property

Gets the rectangle where the column caption 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 CaptionRect { get; }
vb
Public ReadOnly Property CaptionRect As Rectangle

Property Value

TypeDescription
Rectangle

A System.Drawing.Rectangle structure specifying the bounding rectangle of the header’s text.

|

Remarks

By default, column headers can contain caption text and an image used to display sort order implemented by this column’s values. The TreeList.CustomDrawColumnHeader event facilitates your ability to paint these elements. It provides a CaptionRect and CustomDrawColumnHeaderEventArgs.SortShapeRect parameter properties which specify rectangles where mentioned elements are intended to be painted. Column header text is designed to be drawn to the left of column headers. The image indicating sort order is designed to be painted to the right of it.

See Also

SortShapeRect

Caption

Handled

CustomDrawColumnHeaderEventArgs Class

CustomDrawColumnHeaderEventArgs Members

DevExpress.XtraTreeList Namespace