共用方式為


XsltLibrary.FormatNumberDynamic 方法

定義

實作 format-number() XSLT 函式。 如需詳細資訊,請參閱 W3C 建議中的設定數值的格式一節 (英文)。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 System::String ^ FormatNumberDynamic(double value, System::String ^ formatPicture, System::Xml::XmlQualifiedName ^ decimalFormatName, System::String ^ errorMessageName);
public string FormatNumberDynamic (double value, string formatPicture, System.Xml.XmlQualifiedName decimalFormatName, string errorMessageName);
member this.FormatNumberDynamic : double * string * System.Xml.XmlQualifiedName * string -> string
Public Function FormatNumberDynamic (value As Double, formatPicture As String, decimalFormatName As XmlQualifiedName, errorMessageName As String) As String

參數

value
Double

要格式化的值。

formatPicture
String

格式圖片。

decimalFormatName
XmlQualifiedName

格式名稱。

errorMessageName
String

錯誤訊息名稱。

傳回

String

表示數字格式的字串。 如需詳細資訊,請參閱 W3C 建議中的設定數值的格式一節 (英文)。

備註

FormatNumberDynamic方法會 value 使用 formatPicture 和小數格式擴充名稱來格式化。 errorMessageName僅用於錯誤報表,而且必須包含十進位格式物件的限定名稱。

適用於