Back to Devexpress

ValueObject.FromFormula(String, Boolean) Method

officefileapi-devexpress-dot-spreadsheet-dot-valueobject-dot-fromformula-x28-system-dot-string-system-dot-boolean-x29.md

latest2.0 KB
Original Source

ValueObject.FromFormula(String, Boolean) Method

Creates the ValueObject instance using the formula string.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public static ValueObject FromFormula(
    string formula,
    bool invariant
)
vb
Public Shared Function FromFormula(
    formula As String,
    invariant As Boolean
) As ValueObject

Parameters

NameTypeDescription
formulaString

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

TypeDescription
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

ValueObject Class

ValueObject Members

DevExpress.Spreadsheet Namespace