Worksheet.Index Property
Gets the index number of the worksheet within the collection of worksheets.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
ReadOnly Property Index As Integer
Get
int Index { get; }
Property Value
Type: System.Int32
The index number of the worksheet within the collection of worksheets.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.