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
|
...
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 |
title | C# |
---|
{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 Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Get Worksheet at position 0
Dim ws As Worksheet = wb(0)
{code}
{example}