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 cell at a specified row and column position. This property is an indexer for the Worksheet class.

Signature
C#
C#
 public Cell this[int rowNumber, int columnNumber] { get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Default ReadOnly Property Item(ByVal rowNumber As Integer, ByVal columnNumber As Integer) As Cell
{signature}
{parameters}
{param:rowNumber}The 0\-based row number of the cell to retrieve.{param}
{param:columnNumber}The 0\-based column number of the cell to retrieve.{param}
{returns}A [Cell|Cell] object representing the cell at the specified position.{returns}
{example}{code:csharp|title=C#}
Parameters
Param
rowNumber
rowNumber

The 0-based row number of the cell to retrieve.

Param
columnNumber
columnNumber

The 0-based column number of the cell to retrieve.

Returns

A Cell object representing the cell at the specified position.

Example
Code Block
csharp
csharp
titleC#


          //--- Get Cell by index
          Cell cellA1 = ws[0,0];
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get Cell by index
          Dim cellA1 As Cell = ws(0,0)
        
{code} {example}