The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

Worksheet.Index Property

Gets the worksheet index within the workbook's WorksheetCollection collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

int Index { get; }
ReadOnly Property Index As Integer
int Index { get; }
ReadOnly Property Index As Integer
int Index { get; }
ReadOnly Property Index As Integer

Property Value

Type Description
Int32

An integer value specifying a zero-based index of the worksheet.

Property Value

Type Description
Int32

An integer value specifying a zero-based index of the worksheet.

Property Value

Type Description
Int32

An integer value specifying a zero-based index of the worksheet.

Remarks

Use the Index property to obtain the position of the worksheet within the workbook's collection of worksheets (IWorkbook.Worksheets). Note that a workbook must always contain at least one visible sheet.

Worksheet Indexes

To move a worksheet to another location in a workbook, use the Worksheet.Move method, or methods inherited from the Sheet interface: Sheet.MoveToBeginning, Sheet.MoveBefore, Sheet.MoveAfter, or Sheet.MoveToEnd (for details, see the How to: Move a Worksheet to Another Location in a Workbook example).

See Also