[]
Gets or sets whether the zoom is set to fit the selection.
This option is only supported for Chart.
bool FitSelection { get; set; }
Property FitSelection As Boolean
IWorksheet chartSheet = workbook.Worksheets.Add(SheetType.Chart);
chartSheet.Shapes.AddChart(ChartType.Area, 0, 0, 100, 100);
IWorksheetView sheetView = chartSheet.SheetView;
bool fitSelection = sheetView.FitSelection;
| Type | Condition |
|---|---|
| NotSupportedException | if called with unsupported sheet types. |