Back to Devexpress

CustomDrawHeaderEventArgsBase.Bounds Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-customdrawheadereventargsbase-91242b76.md

latest2.5 KB
Original Source

CustomDrawHeaderEventArgsBase.Bounds Property

Gets the header’s bound rectangle.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public override Rectangle Bounds { get; }
vb
Public Overrides ReadOnly Property Bounds As Rectangle

Property Value

TypeDescription
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

csharp
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

vb
e.Graphics.DrawString(headers(e.ColumnIndex), font,
e.Cache.GetSolidBrush(Color.White), e.Bounds, stringFormat)
End Using

See Also

CustomDrawHeaderEventArgsBase Class

CustomDrawHeaderEventArgsBase Members

DevExpress.XtraSpreadsheet Namespace