Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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.v21.2.Core.dll

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