Back to Devexpress

Worksheet.ActiveView Property

officefileapi-devexpress-dot-spreadsheet-dot-worksheet-677fd4bf.md

latest3.5 KB
Original Source

Worksheet.ActiveView Property

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

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
WorksheetView ActiveView { get; }
vb
ReadOnly Property ActiveView As WorksheetView

Property Value

TypeDescription
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.

See Also

How to: Show and Hide Gridlines

How to: Show and Hide Row and Column Headings

How to: Set Page Orientation

How to: Set Page Margins

How to: Set Paper Size

How to: Zoom In and Out of a Worksheet

Worksheet Interface

Worksheet Members

DevExpress.Spreadsheet Namespace