.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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

Declaration

public Color BackColor { get; set; }
Public Property BackColor As Color

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
SpreadsheetControl
.Options.View.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