Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Returns the worksheet specified by a 0-based index. This property is an indexer for the Workbook class.

Signature
C#
C#
 public Worksheet this[int sheetOffset] { get; }
Signature
vb.net
vb.net
Public Default ReadOnly Property Item(ByVal sheetOffset As Integer) As Worksheet
Parameters
Param
sheetOffset
sheetOffset

The 0-based index of the worksheet. The first worksheet is Worksheet[0].

Returns

The worksheet at the specified index.

Example
Code Block
csharp
csharp
titleC#
          //--- Get Worksheet at position 0
          Worksheet ws = wb[0];
Code Block
vb.net
vb.net
titlevb.net
          '--- Get Worksheet at position 0
          Dim ws As Worksheet = wb(0)