[]
        
(Showing Draft Content)

GrapeCity.CalcEngine.IRichValue.TryGetFieldValue

TryGetFieldValue Method

TryGetFieldValue(int, IPrimitiveValue)

Gets the specified field value from this IRichValue object.

Declaration
bool TryGetFieldValue(int index, IPrimitiveValue result)
Function TryGetFieldValue(index As Integer, result As IPrimitiveValue) As Boolean
Parameters
Type Name Description
int index

An integer value indicates the field index.

IPrimitiveValue result

An IPrimitiveValue object indicates the result.

Returns
Type Description
bool

A boolean value indicates whether the field value is returned successful.

TryGetFieldValue(int, ref CellValue)

Gets the specified field value from this IRichValue object.

Declaration
bool TryGetFieldValue(int index, ref CellValue result)
Function TryGetFieldValue(index As Integer, ByRef result As CellValue) As Boolean
Parameters
Type Name Description
int index

An integer value indicates the field index.

CellValue result

An CellValue object indicates the result.

Returns
Type Description
bool

A boolean value indicates whether the field value is returned successful.

TryGetFieldValue(string, out object)

Gets the specified field value from this IRichValue object.

Declaration
bool TryGetFieldValue(string name, out object value)
Function TryGetFieldValue(name As String, ByRef value As Object) As Boolean
Parameters
Type Name Description
string name

The field name.

object value

The field value.

Returns
Type Description
bool

A boolean value indicates whether the field value is returned successful.