 | ExcelHelperGetCellValue(String, String) Method |
Retrieves the value of the cell with the specified cell reference from the specified worksheet.
Namespace: ema3d.Api.V25.ResultsAssembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntaxpublic string GetCellValue(
string sheetName,
string cellReference
)
Public Function GetCellValue (
sheetName As String,
cellReference As String
) As String
public:
String^ GetCellValue(
String^ sheetName,
String^ cellReference
)
member GetCellValue :
sheetName : string *
cellReference : string -> string
Parameters
- sheetName String
- The name of the worksheet containing the cell.
- cellReference String
- The cell reference (e.g., "A1") of the cell whose value to retrieve.
Return Value
StringThe value of the specified cell as a string.
ExceptionsException | Condition |
---|
ArgumentException | Thrown if the sheet name or cell reference is null or empty,
or if the specified cell does not exist. |
See Also