|Visual Basic (Declaration)|
Public Function GetCellValue( _ ByVal columnIndex As _ ) As
public GetCellValue( columnIndex )
- The 0-based index of the cell within the WorksheetRow.
|is less than zero or greater than or equal to the number of columns in the worksheet.|
If this cell belongs to a merged cell region and it is the top-left cell of the region, getting and setting the value will get and set the value of the associated merged cell region. Getting the value of other cells in a merged cell region will always return null. Setting the value of other cells in a merged cell region will have no effect.
If a formula has been applied to the cell or a data table is associated with the cell, getting the Value will return the calculated value of the cell.
The types supported for the value are: