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
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: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#}
          //--- 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}