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

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

NumberFormatInfo.CurrencySymbol プロパティ

通貨記号として使用する文字列取得または設定します

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

Dim instance As NumberFormatInfo
Dim value As String

value = instance.CurrencySymbol

instance.CurrencySymbol = value
public string CurrencySymbol { get;
 set; }
public:
property String^ CurrencySymbol {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_CurrencySymbol ()

/** @property */
public void set_CurrencySymbol (String value)
public function get CurrencySymbol
 () : String

public function set CurrencySymbol
 (value : String)

プロパティ
通貨記号として使用する文字列。InvariantInfo の既定値は "$" です。

例外例外
例外種類条件

ArgumentNullException

プロパティnull 参照 (Visual Basic では Nothing) に設定されています。

InvalidOperationException

プロパティ設定されていますが、NumberFormatInfo が読み取り専用です。

使用例使用例

CurrencySymbol プロパティコード例次に示します。このコード例は、NumberFormatInfo クラストピック取り上げているコード例一部分です。

// Display the culture name and currency symbol.
NumberFormatInfo nfi = ci.NumberFormat;
sb.AppendFormat("The currency symbol for '{0}' is '{1}'"
,
    ci.DisplayName, nfi.CurrencySymbol);
sb.AppendLine();
// Display the culture name and currency symbol.
NumberFormatInfo^ numberFormat = culture->NumberFormat;
builder->AppendFormat("The currency symbol for '{0}'"+
    "is '{1}'",culture->DisplayName,
    numberFormat->CurrencySymbol);
builder->AppendLine();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NumberFormatInfo クラス
NumberFormatInfo メンバ
System.Globalization 名前空間
NumberFormatInfo.CurrencyDecimalDigits プロパティ
NumberFormatInfo.CurrencyDecimalSeparator プロパティ
NumberFormatInfo.CurrencyGroupSeparator プロパティ
NumberFormatInfo.CurrencyGroupSizes プロパティ
NumberFormatInfo.CurrencyNegativePattern プロパティ
NumberFormatInfo.CurrencyPositivePattern プロパティ
NaNSymbol
PercentSymbol
PerMilleSymbol


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

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

辞書ショートカット

すべての辞書の索引

「NumberFormatInfo.CurrencySymbol プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS