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

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

NumberFormatInfo.DigitSubstitution プロパティ

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

グラフィカル ユーザー インターフェイス数字形状表示する方法指定する値を取得または設定します

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

<ComVisibleAttribute(False)> _
Public Property DigitSubstitution As
 DigitShapes
Dim instance As NumberFormatInfo
Dim value As DigitShapes

value = instance.DigitSubstitution

instance.DigitSubstitution = value
[ComVisibleAttribute(false)] 
public DigitShapes DigitSubstitution { get;
 set; }
[ComVisibleAttribute(false)] 
public:
property DigitShapes DigitSubstitution {
    DigitShapes get ();
    void set (DigitShapes value);
}
/** @property */
public DigitShapes get_DigitSubstitution ()

/** @property */
public void set_DigitSubstitution (DigitShapes
 value)
public function get DigitSubstitution
 () : DigitShapes

public function set DigitSubstitution
 (value : DigitShapes)

プロパティ
DigitShapes 値の 1 つ

例外例外
例外種類条件

InvalidOperationException

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

ArgumentException

設定操作の値が、定義済みDigitShapes 値ではありません。

使用例使用例

DigitSubstitution プロパティコード例次に示します

' This example demonstrates the System.Global-
' ization.NumberFormatInfo.DigitSubstitution property.

Imports System
Imports System.Globalization

Class Sample
    Public Shared Sub Main()
 
        Dim westernCI As New
 CultureInfo("en-US")
        Dim arabicCI As New
 CultureInfo("ar-SA")
        Dim thaiCI As New
 CultureInfo("th-TH")
        Dim shape As DigitShapes
        Dim name As String
        Dim intro As String
 = "The digit substitution value for the {0} culture is {1}."
        
        ' Western culture.
        name = westernCI.EnglishName
        shape = westernCI.NumberFormat.DigitSubstitution
        Console.WriteLine(intro, name, shape)
        
        ' Arabic culture.
        name = arabicCI.EnglishName
        shape = arabicCI.NumberFormat.DigitSubstitution
        Console.WriteLine(intro, name, shape)
        
        ' Thai culture.
        name = thaiCI.EnglishName
        shape = thaiCI.NumberFormat.DigitSubstitution
        Console.WriteLine(intro, name, shape)
    
    End Sub 'Main
End Class 'Sample

'
'This code example produces the following results:
'
'The digit substitution value for the English (United States) culture
 is None.
'The digit substitution value for the Arabic (Saudi Arabia) culture
 is Context.
'The digit substitution value for the Thai (Thailand) culture is None.
'
// This example demonstrates the System.Global-
// ization.NumberFormatInfo.DigitSubstitution property.

using System;
using System.Globalization;

class Sample 
{
    public static void Main()
 
    {
    CultureInfo westernCI = new CultureInfo("en-US");
    CultureInfo arabicCI  = new CultureInfo("ar-SA");
    CultureInfo thaiCI    = new CultureInfo("th-TH");
    DigitShapes shape;
    string name;
    string intro = "The digit substitution value for
 the {0} culture is {1}.";

// Western culture.
    name  = westernCI.EnglishName;
    shape = westernCI.NumberFormat.DigitSubstitution;
    Console.WriteLine(intro, name, shape);

// Arabic culture.
    name  = arabicCI.EnglishName;
    shape = arabicCI.NumberFormat.DigitSubstitution;
    Console.WriteLine(intro, name, shape);

// Thai culture.
    name  = thaiCI.EnglishName;
    shape = thaiCI.NumberFormat.DigitSubstitution;
    Console.WriteLine(intro, name, shape);
    }
}

/*
This code example produces the following results:

The digit substitution value for the English (United States) culture
 is None.
The digit substitution value for the Arabic (Saudi Arabia) culture
 is Context.
The digit substitution value for the Thai (Thailand) culture is
 None.

*/
// This example demonstrates the
// System.Globalization.NumberFormatInfo.DigitSubstitution property.

using namespace System;
using namespace System::Globalization;

int main()
{
    CultureInfo^ westernCI = gcnew CultureInfo("en-US");
    CultureInfo^ arabicCI  = gcnew CultureInfo("ar-SA");
    CultureInfo^ thaiCI    = gcnew CultureInfo("th-TH");
    DigitShapes shape;
    String^ name;
    String^ intro = "The digit substitution value for "
 +
        "the {0} culture is {1}.";

    // Western culture.
    name  = westernCI->EnglishName;
    shape = westernCI->NumberFormat->DigitSubstitution;
    Console::WriteLine(intro, name, shape);

    // Arabic culture.
    name  = arabicCI->EnglishName;
    shape = arabicCI->NumberFormat->DigitSubstitution;
    Console::WriteLine(intro, name, shape);

    // Thai culture.
    name  = thaiCI->EnglishName;
    shape = thaiCI->NumberFormat->DigitSubstitution;
    Console::WriteLine(intro, name, shape);
}

/*
This code example produces the following results:

The digit substitution value for the English (United States) culture
 is None.
The digit substitution value for the Arabic (Saudi Arabia) culture
 is Context.
The digit substitution value for the Thai (Thailand) culture is
 None.

*/
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS