共用方式為


SPField.DefaultFormula Property

Gets or sets the default formula for a calculated field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property DefaultFormula As String
    Get
    Set
'Usage
Dim instance As SPField
Dim value As String

value = instance.DefaultFormula

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

Property Value

Type: System.String
A string that contains the formula.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace