Rune.GetNumericValue(Rune) 方法

定義

取得與指定 rune 關聯的數值。Gets the numeric value associated with the specified rune.

public:
 static double GetNumericValue(System::Text::Rune value);
public static double GetNumericValue (System.Text.Rune value);
static member GetNumericValue : System.Text.Rune -> double
Public Shared Function GetNumericValue (value As Rune) As Double

參數

value
Rune

要取得其數值的 rune。The rune for which to get the numeric value.

傳回

Double

value 關聯的數值,或若 value 不代表數值字元,則為 -1。The numeric value associated with value, or -1 if value doesn't represent a numeric character.

備註

這個方法的行為相當於 CharUnicodeInfo.GetNumericValueThis method has behavior equivalent to CharUnicodeInfo.GetNumericValue. 請參閱該檔以取得詳細資訊。Refer to that documentation for more information.

適用於