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 with the specified name. This property is an indexer for the Workbook class.

Signature
C#
C#
 public Worksheet this[System.String sheetName] { get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Default ReadOnly Property Item(ByVal sheetName As String) As Worksheet
{signature}
{parameters}
{param:name}The name of the worksheet.{param}
{returns}The worksheet with the specified name.{returns}
{example}{code:csharp|title=C#}
Parameters
Param
name
name

The name of the worksheet.

Returns

The worksheet with the specified name.

Example
Code Block
csharp
csharp
titleC#


          //--- Get the worksheet titled "Sheet1"
          Worksheet ws = wb["Sheet1"];
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get the worksheet titled "Sheet1"
          Dim ws As Worksheet = wb("Sheet1")
        
{code} {example}