Skip to main content

IdxSpreadSheetCellData.GetAsFormula Method

Returns a parsed formula expression associated with a cell.

Declaration

function GetAsFormula: TObject;

Returns

Type
TObject

Remarks

To access properties and methods of a formula expression, cast the GetAsFormula function result to the corresponding TdxSpreadSheetCustomFormula descendant class (TdxSpreadSheetFormula, for instance). The GetAsFormula function returns nil if no formula expression is associated with a cell. If the cell has a formula, you can identify its error status by calling the GetAsError function.

The GetAsFormula function is a getter of the AsFormula property.

See Also