Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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