Skip to main content
Row

ValueObject.FromFormula(String, Boolean) Method

Creates the ValueObject instance using the formula string.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public static ValueObject FromFormula(
    string formula,
    bool invariant
)

Parameters

Name Type Description
formula String

A string that is a valid worksheet formula. For use in data validation, the formula must begin with an equal sign and it must evaluate to either true or false.

invariant Boolean

true, if the formula is in the invariant (English) culture; otherwise, false.

Returns

Type Description
ValueObject

A ValueObject instance.

Remarks

Use the ValueObject.Formula property to obtain the formula from the created object. To determine whether the ValueObject originates from the formula, check the ValueObject.IsFormula property.

See Also