共用方式為


SPFieldCalculated.Formula property

取得或設定用來計算欄位中的公式。

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

Syntax

'宣告
Public Property Formula As String
    Get
    Set
'用途
Dim instance As SPFieldCalculated
Dim value As String

value = instance.Formula

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

Property value

Type: System.String
公式。

備註

公式格式為Microsoft Excel,但有一些限制,您可以使用函式和在語法中的有些微妙。使用這個屬性之前,請參閱Calculated Field Formulas

請參閱

參照

SPFieldCalculated class

SPFieldCalculated members

Microsoft.SharePoint namespace