wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontroloptions-af760950.md
Gets or sets options specific for the SpreadsheetControl’s view. This is a dependency property.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public SpreadsheetViewOptions View { get; set; }
Public Property View As SpreadsheetViewOptions
| Type | Description |
|---|---|
| SpreadsheetViewOptions |
A SpreadsheetViewOptions object that specifies display settings for the SpreadsheetControl.
|
You can access this nested property as listed below:
| Object Type | Path to View |
|---|---|
| SpreadsheetControl |
.Options .View
|
Use the SpreadsheetControl.Options.View property to access the SpreadsheetViewOptions object. The object’s properties allow you to specify the row header width (SpreadsheetViewOptions.RowHeaderWidth) and column header height (SpreadsheetViewOptions.ColumnHeaderHeight), display or hide column headers (SpreadsheetViewOptions.ShowColumnHeaders) and row headers (SpreadsheetViewOptions.ShowRowHeaders), display or remove the print area’s border (SpreadsheetViewOptions.ShowPrintArea), resolve the axis label overlapping on a chart (SpreadsheetViewOptions.ChartsCategoryAxisLabels and SpreadsheetViewOptions.ChartsValueAxisLabels).
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the View property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-spreadsheet-control-create-a-data-entry-form/CS/WpfDataEntryFormSample/MainWindow.xaml#L40
</dxsps:SpreadsheetControlOptions.Behavior>
<dxsps:SpreadsheetControlOptions.View>
<dxsps:SpreadsheetViewOptions ShowColumnHeaders="False" ShowRowHeaders="False" ShowPrintArea="False"/>
See Also
SpreadsheetControlOptions Class