ExcelViewOptions Class
Stores MS Excel display and view related options.
- Inheritance:
- System.ObjectExcelViewOptions
Properties
Dpi
Gets or sets the DPI (dots or pixels per inch) at which the workbook should be rendered.
Property Value
- System.Double
The DPI at which the workbook should be rendered.
Remarks
The Dpi also affects how DevicePixel is converted from and to other LengthUnits.
The Dpi should be updated whenever the DPI changes for a Per Monitor DPI Aware application.
FirstVisibleColumn
Index of the first visible column in the worksheet.
Property Value
- System.Int32
Remarks
Default value for this property is 0.
FirstVisibleRow
Index of the first visible row in the worksheet.
Property Value
- System.Int32
Remarks
Default value for this property is 0.
OutlineColumnButtonsRight
Gets or sets whether outline column buttons are displayed on the right side of groups.
public bool OutlineColumnButtonsRight { get; set; }
Public Property OutlineColumnButtonsRight As Boolean
Property Value
- System.Boolean
Remarks
This property is simply written to Excel file and has no effect on behavior of this library. For more information on worksheet protection, consult Microsoft Excel documentation.
See Also
OutlineRowButtonsBelow
Gets or sets whether outline row buttons are displayed below groups.
public bool OutlineRowButtonsBelow { get; set; }
Public Property OutlineRowButtonsBelow As Boolean
Property Value
- System.Boolean
Remarks
This property is simply written to Excel file and has no effect on behavior of this library. For more information on worksheet protection, consult Microsoft Excel documentation.
See Also
PageBreakViewZoom
Magnification factor in page break view.
Property Value
- System.Int32
Remarks
Unit is one percent. Value must be between 10 and 400.
Default value for this property is 60.
Exceptions
- System.ArgumentOutOfRangeException
Value is out of 10 to 400 range.
ShowColumnsFromRightToLeft
If true, MS Excel shows columns from right to left.
public bool ShowColumnsFromRightToLeft { get; set; }
Public Property ShowColumnsFromRightToLeft As Boolean
Property Value
- System.Boolean
Remarks
Default value for this property is false.
ShowFormulas
If true, MS Excel shows formulas. Otherwise, formula results are shown.
Property Value
- System.Boolean
Remarks
Default value for this property is false.
ShowGridLines
If true, MS Excel shows grid lines.
Property Value
- System.Boolean
Remarks
Default value for this property is true.
ShowInPageBreakPreview
If true, MS Excel shows worksheet in page break preview. Otherwise, normal view is used.
public bool ShowInPageBreakPreview { get; set; }
Public Property ShowInPageBreakPreview As Boolean
Property Value
- System.Boolean
Remarks
Default value for this property is false.
This value is supported only for XLSX and XLSB files.
ShowOutlineSymbols
If true, MS Excel shows outline symbols.
Property Value
- System.Boolean
Remarks
Default value for this property is true.
ShowSheetHeaders
If true, MS Excel shows row and column headers.
Property Value
- System.Boolean
Remarks
Default value for this property is true.
ShowZeroValues
If true, MS Excel shows zero values. Otherwise, zero values are shown as empty cells.
Property Value
- System.Boolean
Remarks
Default value for this property is true.
ViewType
Gets and sets the view type.
Property Value
Remarks
Zoom
Magnification factor in normal view.
Property Value
- System.Int32
Remarks
Unit is one percent. Value must be between 10 and 400.
Default value for this property is 100.
Exceptions
- System.ArgumentOutOfRangeException
Value is out of 10 to 400 range.