Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns the worksheet specified by a 0\-based index. This property is an indexer for the [Workbook|Workbook] class.
{excerpt}

{signature: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
Parameters

...

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

Returns

The worksheet at the specified index.

{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#}
          //--- Get Worksheet at position 0
          Worksheet ws = wb[0];
{code}
{code:vb.net
|title=vb.net
}
          '--- Get Worksheet at position 0
          Dim ws As Worksheet = wb(0)
{code}
{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle