Strings.FormatCurrency メソッド
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)

Public Shared Function FormatCurrency ( _ Expression As Object, _ <OptionalAttribute> Optional NumDigitsAfterDecimal As Integer = -1, _ <OptionalAttribute> Optional IncludeLeadingDigit As TriState = TriState.UseDefault, _ <OptionalAttribute> Optional UseParensForNegativeNumbers As TriState = TriState.UseDefault, _ <OptionalAttribute> Optional GroupDigits As TriState = TriState.UseDefault _ ) As String
Dim Expression As Object Dim NumDigitsAfterDecimal As Integer Dim IncludeLeadingDigit As TriState Dim UseParensForNegativeNumbers As TriState Dim GroupDigits As TriState Dim returnValue As String returnValue = Strings.FormatCurrency(Expression, NumDigitsAfterDecimal, IncludeLeadingDigit, UseParensForNegativeNumbers, GroupDigits)
public static string FormatCurrency ( Object Expression, [OptionalAttribute] int NumDigitsAfterDecimal, [OptionalAttribute] TriState IncludeLeadingDigit, [OptionalAttribute] TriState UseParensForNegativeNumbers, [OptionalAttribute] TriState GroupDigits )
public: static String^ FormatCurrency ( Object^ Expression, [OptionalAttribute] int NumDigitsAfterDecimal, [OptionalAttribute] TriState IncludeLeadingDigit, [OptionalAttribute] TriState UseParensForNegativeNumbers, [OptionalAttribute] TriState GroupDigits )
public static String FormatCurrency ( Object Expression, /** @attribute OptionalAttribute() */ int NumDigitsAfterDecimal, /** @attribute OptionalAttribute() */ TriState IncludeLeadingDigit, /** @attribute OptionalAttribute() */ TriState UseParensForNegativeNumbers, /** @attribute OptionalAttribute() */ TriState GroupDigits )
public static function FormatCurrency ( Expression : Object, NumDigitsAfterDecimal : int, IncludeLeadingDigit : TriState, UseParensForNegativeNumbers : TriState, GroupDigits : TriState ) : String
戻り値
システムのコントロール パネルで定義された現在の通貨記号を使用する通貨値として書式設定された式を返します。

詳細については、Visual Basic のトピック「FormatCurrency 関数 (Visual Basic)」を参照してください。
1 つ以上のオプション引数が指定されていない場合は、コンピュータの地域設定と一致する値が代わりに使用されます。
現在の通貨記号の位置は、システムの地域設定によって決まります。
![]() |
---|
設定情報はすべてアプリケーションのロケールから提供されます。既定では、コントロール パネルのロケール セットになります。これは .NET Framework を使ってプログラムで変更できますが、先行する 0 については Number タブに基づいています。 |
IncludeLeadingDigit、UseParensForNegativeNumbers、および GroupDigits の各引数は、次の TriState 列挙値を受け取ります。


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Strings クラス
Strings メンバ
Microsoft.VisualBasic 名前空間
ArgumentException
InvalidCastException
その他の技術情報
FormatCurrency 関数 (Visual Basic)
文字列操作の概要
FormatDateTime 関数 (Visual Basic)
FormatNumber 関数 (Visual Basic)
FormatPercent 関数 (Visual Basic)
TriState 列挙型
Weblioに収録されているすべての辞書からStrings.FormatCurrency メソッドを検索する場合は、下記のリンクをクリックしてください。

- Strings.FormatCurrency メソッドのページへのリンク