SpreadsheetViewOptions.BackColor Property
Gets or sets the SpreadsheetControl’s background color when a worksheet’s visible area is restricted.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Color | Specifies the color of the SpreadsheetControl’s non-editable area. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to BackColor |
---|---|
SpreadsheetControlOptions |
|
Remarks
When you restrict a worksheet’s visible area via the SetSize method, you can use the BackColor property to change the color of the SpreadsheetControl’s non-editable area.
spreadsheetControl.WorksheetDisplayArea.SetSize("Sheet1", 5, 5);
spreadsheetControl.Options.View.BackColor = Color.FromArgb(0xef, 0xf6, 0xf3);
Default BackColor | Custom BackColor |
---|---|
See Also