Click or drag to resize

ExcelWorksheetCollectionActiveWorksheet Property

Gets or sets active worksheet.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public ExcelWorksheet ActiveWorksheet { get; set; }

Property Value

Type: ExcelWorksheet

Active worksheet is the one selected when file is opened with Microsoft Excel. By default active worksheet is the first one added with Add(String) or Add(SheetType, String) methods.

GemBox.Spreadsheet Free allows setting active worksheet to only one of the first 5 worksheets, otherwise active worksheet defaults to the first worksheet.

See Also