Skip to main content

TdxSpreadSheetCell.GetAsFormulaObject Method

Returns a parsed formula expression associated with the cell object.

Declaration

function GetAsFormulaObject: TObject;

Returns

Type
TObject

Remarks

This function returns a formula expression only if the GetDataType function returns cdtFormula; otherwise – nil. To access the returned formula expression’s type-specific properties and methods, cast the GetAsFormulaObject function result to the corresponding class (TdxSpreadSheetFormula, for instance).

This function implements the GetAsFormula function that is accessible via the IdxSpreadSheetCellData interface and is called internally by the ExpressSpreadSheet formula engine to provide both the formula expression and conditional formatting functionality in ExpressSpreadSheet and ExpressQuantumGrid Views.

See Also