SPFieldCalculated.Formula property

Gets or sets the formula that is used for calculation in the field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Formula As String
    Get
    Set
'Usage
Dim instance As SPFieldCalculated
Dim value As String

value = instance.Formula

instance.Formula = value
public string Formula { get; set; }

Property value

Type: System.String
The formula.

Remarks

Formulas are in the format of Microsoft Excel, but there are some limitations on the functions you can use and some subtleties in the syntax. Before using this property consult Calculated Field Formulas.

See also

Reference

SPFieldCalculated class

SPFieldCalculated members

Microsoft.SharePoint namespace