Skip to main content

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.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public Color BackColor { get; set; }

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
.View .BackColor

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
Spreadsheet_Default_BackColor Spreadsheet_Custom_BackColor
See Also