Back to Devexpress

SpreadsheetViewOptions.ColumnHeaderHeight Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetviewoptions-e58bc3bf.md

latest2.6 KB
Original Source

SpreadsheetViewOptions.ColumnHeaderHeight Property

Gets or sets the height of the column headers in pixels.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[DefaultValue(0)]
public int ColumnHeaderHeight { get; set; }
vb
<DefaultValue(0)>
Public Property ColumnHeaderHeight As Integer

Property Value

TypeDefaultDescription
Int320

An integer value that is the column header height in pixels.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ColumnHeaderHeight
SpreadsheetControlOptions

.View .ColumnHeaderHeight

|

Remarks

Use the ColumnHeaderHeight property to explicitly set the height of column headers in the SpreadsheetControl. You can also specify the width of row headers using the SpreadsheetViewOptions.RowHeaderWidth property. Use these properties along with custom draw events to customize the appearance of the SpreadsheetControl.

The image below shows the control with custom row and column headers.

See Also

RowHeaderWidth

CustomDrawColumnHeader

CustomDrawColumnHeaderBackground

SpreadsheetViewOptions Class

SpreadsheetViewOptions Members

DevExpress.XtraSpreadsheet Namespace