Back to Devexpress

SpreadsheetControlOptions.View Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontroloptions-af760950.md

latest3.7 KB
Original Source

SpreadsheetControlOptions.View Property

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

Declaration

csharp
public SpreadsheetViewOptions View { get; set; }
vb
Public Property View As SpreadsheetViewOptions

Property Value

TypeDescription
SpreadsheetViewOptions

A SpreadsheetViewOptions object that specifies display settings for the SpreadsheetControl.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to View
SpreadsheetControl

.Options .View

|

Remarks

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

xml
</dxsps:SpreadsheetControlOptions.Behavior>
<dxsps:SpreadsheetControlOptions.View>
    <dxsps:SpreadsheetViewOptions ShowColumnHeaders="False" ShowRowHeaders="False" ShowPrintArea="False"/>

See Also

SpreadsheetControlOptions Class

SpreadsheetControlOptions Members

DevExpress.Xpf.Spreadsheet Namespace