Returns the cell's current value.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function GetValue() As Object |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As DDCell
Dim value As Object
value = instance.GetValue()
|
| C# | |
|---|
public object GetValue() |
Return Value
The return type is one of the following:
- Null reference (for CellTypes.Blank)
- System.String (for CellTypes.Label)
- System.Double (for CellTypes.Number)
- A value in the BiffCellBoolErrValues enumeration (for CellTypes.BoolErr)
Use DDCell's Type property to determine the type of the cell before returning the value, or check the type of the returned value.
See Also