CurrencyFormatter 클래스

정의

통화를 형식화하고 구문 분석합니다.

public ref class CurrencyFormatter sealed : INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.ICurrencyFormatterFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CurrencyFormatter final : INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.ICurrencyFormatterFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class CurrencyFormatter final : INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.ICurrencyFormatterFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CurrencyFormatter : INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.ICurrencyFormatterFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CurrencyFormatter : INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
function CurrencyFormatter(currencyCode, languages, geographicRegion)
Public NotInheritable Class CurrencyFormatter
Implements INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
상속
Object Platform::Object IInspectable CurrencyFormatter
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

앱이 이 클래스에 사용된 언어 태그를 국가 언어 지원 함수에 전달하는 경우 먼저 ResolveLocaleName을 호출하여 태그를 변환해야 합니다.

생성자

CurrencyFormatter(String)

통화 식별자를 사용하여 초기화되는 CurrencyFormatter 개체를 만듭니다.

CurrencyFormatter(String, IIterable<String>, String)

통화 식별자, 언어 목록 및 지리적 지역을 사용하여 초기화된 CurrencyFormatter 개체를 만듭니다.

속성

Currency

참고

통화는 Windows 8.1 후 릴리스에 대해 읽기 전용일 수 있습니다. 대신 새 CurrencyFormatter를 사용합니다.

통화 값의 서식을 지정하고 구문 분석하는 데 사용할 통화의 식별자를 가져옵니다.

FractionDigits

통화 값의 소수 부분에 대해 표시할 최소 자릿수를 가져오거나 설정합니다.

GeographicRegion

통화 값의 서식을 지정하고 구문 분석할 때 사용되는 지역을 가져옵니다.

IntegerDigits

통화 값의 정수 부분에 대해 표시할 최소 자릿수를 가져오거나 설정합니다.

IsDecimalPointAlwaysDisplayed

통화 값의 소수점이 항상 표시되어야 하는지 여부를 가져오거나 설정합니다.

IsGrouped

통화 값의 정수 부분을 그룹화할지 여부를 가져오거나 설정합니다. 기본값은 false입니다.

IsZeroSigned

음수 또는 양수에 대한 규칙을 사용하여 -0의 서식을 지정할지 여부를 가져오거나 설정합니다. (라틴 숫자 시스템에서 선택은 "-0" 또는 "0"입니다.)

Languages

통화 값의 서식을 지정하고 구문 분석할 때 사용되는 언어 식별자의 우선 순위 목록을 가져옵니다.

Mode

통화 형식이 통화 기호인지 통화 코드인지 여부를 가져오거나 설정합니다.

NumberRounder

통화 금액의 서식을 지정할 때 사용할 현재 반올림 전략을 가져오거나 설정합니다.

NumeralSystem

통화 값의 서식을 지정하고 구문 분석하는 데 사용되는 번호 매기기 시스템을 가져오거나 설정합니다.

ResolvedGeographicRegion

통화 값의 서식을 지정하거나 구문 분석하는 데 가장 최근에 사용된 지리적 지역을 가져옵니다.

ResolvedLanguage

통화 값의 서식을 지정하거나 구문 분석하는 데 가장 최근에 사용된 언어를 가져옵니다.

SignificantDigits

통화 금액의 서식을 지정할 때 현재 안쪽 여백을 상당한 숫자로 가져오거나 설정합니다.

메서드

ApplyRoundingForCurrency(RoundingAlgorithm)

지정한 반올림 알고리즘을 CurrencyFormatter에 적용합니다.

Format(Double)

Double 통화 값의 문자열 표현을 반환합니다.

Format(Int64)

Int64 통화 값의 문자열 표현을 반환합니다.

Format(UInt64)

UInt64 통화 값의 문자열 표현을 반환합니다.

FormatDouble(Double)

Double 통화 값의 문자열 표현을 반환합니다.

FormatInt(Int64)

Int64 통화 값의 문자열 표현을 반환합니다.

FormatUInt(UInt64)

UInt64 통화 값의 문자열 표현을 반환합니다.

ParseDouble(String)

Double 통화 값의 문자열 표현을 구문 분석하려고 시도합니다.

ParseInt(String)

정수 통화 값의 문자열 표현을 구문 분석하려고 시도합니다.

ParseUInt(String)

부호 없는 정수 통화 값의 문자열 표현을 구문 분석하려고 시도합니다.

적용 대상

추가 정보