NumberFormatInfo.NativeDigits プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As NumberFormatInfo Dim value As String() value = instance.NativeDigits instance.NativeDigits = value
[ComVisibleAttribute(false)] public: property array<String^>^ NativeDigits { array<String^>^ get (); void set (array<String^>^ value); }
/** @property */ public String[] get_NativeDigits () /** @property */ public void set_NativeDigits (String[] value)
西洋の数字 0 ~ 9 に等しいネイティブな数字を含む String 型の配列。既定値は、要素が "0"、"1"、"2"、"3"、"4"、"5"、"6"、"7"、"8"、および "9" の配列です。

例外の種類 | 条件 |
---|---|
InvalidOperationException | |
ArgumentNullException | 設定操作の値が null 参照 (Visual Basic では Nothing) です。 または |
ArgumentException | または 設定操作で、値配列の要素に、1 つの Char オブジェクトも、サロゲート ペアを構成する Char オブジェクトのペアも含まれていません。 または 設定操作で、値配列の要素が Unicode Standard で定義された数字ではありません。つまり、配列内の数字に、Unicode Number, Decimal Digit (Nd) 一般カテゴリ値がありません。 または 設定操作で、値配列内の要素の数値が配列内の要素の位置に対応していません。つまり、インデックス 0 の要素 (配列の最初の要素) が数値 0 ではない、またはインデックス 1 の要素が数値 1 でない、などです。 |

NativeDigits プロパティのコード例を次に示します。
' This example demonstrates the NativeDigits property. Imports System Imports System.Globalization Imports System.Threading Class Sample Public Shared Sub Main() Dim currentCI As CultureInfo = Thread.CurrentThread.CurrentCulture Dim nfi As NumberFormatInfo = currentCI.NumberFormat Dim nativeDigitList As String() = nfi.NativeDigits Console.WriteLine("The native digits for the {0} culture are:", currentCI.Name) Dim s As String For Each s In nativeDigitList Console.Write("""{0}"" ", s) Next s Console.WriteLine() End Sub 'Main End Class 'Sample 'This code example produces the following results: ' 'The native digits for the en-US culture are: '"0" "1" "2" "3" "4" "5" "6" "7" "8" "9" '
// This example demonstrates the NativeDigits property. using System; using System.Globalization; using System.Threading; class Sample { public static void Main() { CultureInfo currentCI = Thread.CurrentThread.CurrentCulture; NumberFormatInfo nfi = currentCI.NumberFormat; string[] nativeDigitList = nfi.NativeDigits; Console.WriteLine("The native digits for the {0} culture are:", currentCI.Name); foreach (string s in nativeDigitList) { Console.Write("\"{0}\" ", s); } Console.WriteLine(); } } /* This code example produces the following results: The native digits for the en-US culture are: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" */
// This example demonstrates the NativeDigits property. using namespace System; using namespace System::Globalization; using namespace System::Threading; int main() { CultureInfo^ currentCI = Thread::CurrentThread->CurrentCulture; NumberFormatInfo^ nfi = currentCI->NumberFormat; array<String^>^ nativeDigitList = nfi->NativeDigits; Console::WriteLine("The native digits for the {0} culture are:", currentCI->Name); for each (String^ nativeDigit in nativeDigitList) { Console::Write("\"{0}\" ", nativeDigit); } Console::WriteLine(); } /* This code example produces the following results: The native digits for the en-US culture are: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" */

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からNumberFormatInfo.NativeDigits プロパティを検索する場合は、下記のリンクをクリックしてください。

- NumberFormatInfo.NativeDigits プロパティのページへのリンク