NumberFormatInfo.NativeDigits プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > NumberFormatInfo.NativeDigits プロパティの意味・解説 

NumberFormatInfo.NativeDigits プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

西洋数字 0 ~ 9 に等しネイティブ数字文字列配列取得または設定します

名前空間: System.Globalization
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(False)> _
Public Property NativeDigits As
 String()
Dim instance As NumberFormatInfo
Dim value As String()

value = instance.NativeDigits

instance.NativeDigits = value
[ComVisibleAttribute(false)] 
public string[] NativeDigits { get;
 set; }
[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)
public function get NativeDigits
 () : String[]

public function set NativeDigits
 (value : String[])

プロパティ
西洋数字 0 ~ 9 に等しネイティブ数字を含む String 型の配列既定値は、要素が "0"、"1"、"2"、"3"、"4"、"5"、"6"、"7"、"8"、および "9" の配列です。

例外例外
例外種類条件

InvalidOperationException

現在の NumberFormatInfo オブジェクト読み取り専用です。

ArgumentNullException

設定操作の値が null 参照 (Visual Basic では Nothing) です。

または

設定操作で、値配列要素null 参照 (Visual Basic では Nothing) です。

ArgumentException

設定操作で、値配列10 個の要素含まれていません。

または

設定操作で、値配列要素に、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"

*/
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NumberFormatInfo クラス
NumberFormatInfo メンバ
System.Globalization 名前空間
DigitShapes 列挙


このページでは「.NET Framework クラス ライブラリ リファレンス」からNumberFormatInfo.NativeDigits プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からNumberFormatInfo.NativeDigits プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からNumberFormatInfo.NativeDigits プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

NumberFormatInfo.NativeDigits プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



NumberFormatInfo.NativeDigits プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS