windowsforms-devexpress-dot-xtraspreadsheet-dot-customdrawheadereventargsbase-91242b76.md
Gets the header’s bound rectangle.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public override Rectangle Bounds { get; }
Public Overrides ReadOnly Property Bounds As Rectangle
| Type | Description |
|---|---|
| Rectangle |
A Rectangle object specifying the header boundaries.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Bounds property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-spreadsheet-custom-draw-example/CS/WindowsFormsApp1/Form1.cs#L155
e.Graphics.DrawString(headers[e.ColumnIndex], font,
e.Cache.GetSolidBrush(Color.White), e.Bounds, stringFormat);
}
winforms-spreadsheet-custom-draw-example/VB/CustomDrawExample/Form1.vb#L51
e.Graphics.DrawString(headers(e.ColumnIndex), font,
e.Cache.GetSolidBrush(Color.White), e.Bounds, stringFormat)
End Using
See Also
CustomDrawHeaderEventArgsBase Class