Skip to main content
.NET Framework 4.5.2+
Row

Worksheet.ActiveView Property

Provides access to an object that contains options to display and print a worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v22.1.Core.dll

Declaration

WorksheetView ActiveView { get; }

Property Value

Type Description
WorksheetView

A WorksheetView object.

Remarks

Use the WorksheetView object’s members to specify the visibility of gridlines (WorksheetView.ShowGridlines), show or hide row and column headings (WorksheetView.ShowHeadings), zoom a worksheet view (WorksheetView.Zoom), select a worksheet tab color (WorksheetView.TabColor) and view type (WorksheetView.ViewType), and change print settings (WorksheetView.Orientation, WorksheetView.Margins and WorksheetView.PaperKind). To access more print-specific options, use the WorksheetPrintOptions object returned by Worksheet.PrintOptions. See the How to: Specify Print Settings example for details.

For example, the image below shows the worksheet when gridlines are displayed, and when gridlines are hidden in the SpreadsheetControl.

SpreadsheetControl_Worksheet_ActiveView_ShowGridlines

The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveView 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.

See Also