[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.Worksheets

Worksheets Property

Worksheets

Returns the IWorksheets collection that represents all worksheets in the workbook.

This property returns the workbook-level worksheets collection. The property has a read-only getter; use the returned collection to access worksheets by index or name, and to manage worksheets in the workbook.

Declaration
IWorksheets Worksheets { get; }
ReadOnly Property Worksheets As IWorksheets
Examples
worksheet.Name = "Summary";
IWorksheets sheets = workbook.Worksheets;
IWorksheet firstSheet = sheets[0];
IWorksheet summarySheet = sheets["Summary"];