Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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