CustomDrawColumnHeaderEventArgs.CaptionRect Property

Gets the rectangle where the column caption is intended to be drawn.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.2.dll

Declaration

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

Property Value

Type Description
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