[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheet.Index

Index Property

Index

Gets or sets the zero-based position of the worksheet in the workbook's worksheet collection.

Getting the property returns the worksheet's current position. Setting the property moves the worksheet to the specified position.

Declaration
int Index { get; set; }
Property Index As Integer
Examples
workbook.Worksheets.Add();
IWorksheet secondSheet = workbook.Worksheets[1];
int index = secondSheet.Index;