共用方式為


SPFieldCurrency.GetFieldValueAsText method (Double, CultureInfo, Int32, SPNumberFormatTypes)

根據指定的資料、 文化特性資訊、 地區設定 ID,以及數字格式的純文字形式傳回欄位值。

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

Syntax

'宣告
Public Shared Function GetFieldValueAsText ( _
    data As Double, _
    culture As CultureInfo, _
    currencyLocaleId As Integer, _
    displayFormat As SPNumberFormatTypes _
) As String
'用途
Dim data As Double
Dim culture As CultureInfo
Dim currencyLocaleId As Integer
Dim displayFormat As SPNumberFormatTypes
Dim returnValue As String

returnValue = SPFieldCurrency.GetFieldValueAsText(data, _
    culture, currencyLocaleId, displayFormat)
public static string GetFieldValueAsText(
    double data,
    CultureInfo culture,
    int currencyLocaleId,
    SPNumberFormatTypes displayFormat
)

參數

  • data
    Type: System.Double

    System.Double物件,表示要轉換成 HTML 格式的值。

  • currencyLocaleId
    Type: System.Int32

    32 位元的整數,指定欄位的地區設定 ID。

傳回值

Type: System.String
字串,含有值為純文字,例如,HTML。

請參閱

參照

SPFieldCurrency class

SPFieldCurrency members

GetFieldValueAsText overload

Microsoft.SharePoint namespace