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}{signature:
}
Signature
vb.net
vb.net
Public Default ReadOnly Property Item(ByVal sheetOffset As Integer) As Worksheet
{signature}

{parameters}
{param:sheetOffset}The 0\-based index of the worksheet. The first worksheet is {{Worksheet\[0\]}}.{param}

{returns}The worksheet at the specified index.{returns}

{example}
{code:csharp|title=C#}
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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

          '--- Get Worksheet at position 0
          Dim ws As Worksheet = wb(0)
{code} {example}