[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheetView.FitSelection

FitSelection Property

FitSelection

Gets or sets whether the zoom is set to fit the selection.

This option is only supported for Chart.

Declaration
bool FitSelection { get; set; }
Property FitSelection As Boolean
Examples
IWorksheet chartSheet = workbook.Worksheets.Add(SheetType.Chart);
chartSheet.Shapes.AddChart(ChartType.Area, 0, 0, 100, 100);
IWorksheetView sheetView = chartSheet.SheetView;
bool fitSelection = sheetView.FitSelection;
Exceptions
Type Condition
NotSupportedException

if called with unsupported sheet types.