[]
Gets the worksheet using the index.
IWorksheet this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IWorksheet
| Type | Name | Description |
|---|---|---|
| int | index | The index. |
| Type | Description |
|---|---|
| IWorksheet | The worksheet at the specified index. |
IWorksheets worksheets = workbook.Worksheets;
IWorksheet firstSheet = worksheets[0];
string name = firstSheet.Name;
Gets the worksheet using the name.
IWorksheet this[string name] { get; }
ReadOnly Default Property Item(name As String) As IWorksheet
| Type | Name | Description |
|---|---|---|
| string | name | The worksheet's name. |
worksheet.Name = "Data";
IWorksheet dataSheet = workbook.Worksheets["Data"];
string name = dataSheet.Name;
Gets worksheets by names.
IWorksheets this[string[] name] { get; }
ReadOnly Default Property Item(name As String()) As IWorksheets
| Type | Name | Description |
|---|---|---|
| string[] | name | An array that represents names of worksheets. |
worksheet.Name = "Data";
workbook.Worksheets.Add().Name = "Summary";
IWorksheets sheets = workbook.Worksheets[new string[] {"Data", "Summary"}];
int count = sheets.Count;