Version

GetCellText(Int32,TextFormatMode) Method

Gets the text in the cell at the specified index.
Syntax
'Declaration
 
Public Overloads Function GetCellText( _
   ByVal columnIndex As Integer, _
   ByVal textFormatMode As TextFormatMode _
) As String
public string GetCellText( 
   int columnIndex,
   TextFormatMode textFormatMode
)

Parameters

columnIndex
The 0-based index of the cell within the WorksheetRow.
textFormatMode
The format mode to use when getting the cell text.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptiontextFormatMode is not defined in the TextFormatMode enumeration.
System.InvalidOperationExceptionIf the row was removed from the worksheet.
Remarks

The text is based on the value of the cell and the format string applied to the cell.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also