다음을 통해 공유


NumberFormatInfo.PercentPositivePattern 속성

양수 백분율 값의 서식 패턴을 가져오거나 설정합니다.

네임스페이스: System.Globalization
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Property PercentPositivePattern As Integer
‘사용 방법
Dim instance As NumberFormatInfo
Dim value As Integer

value = instance.PercentPositivePattern

instance.PercentPositivePattern = value
public int PercentPositivePattern { get; set; }
public:
property int PercentPositivePattern {
    int get ();
    void set (int value);
}
/** @property */
public int get_PercentPositivePattern ()

/** @property */
public void set_PercentPositivePattern (int value)
public function get PercentPositivePattern () : int

public function set PercentPositivePattern (value : int)

속성 값

양수 백분율 값의 서식 패턴입니다. InvariantInfo 기본값은 "n %"를 나타내는 0입니다. 여기서, "%"는 PercentSymbol이며 n은 숫자입니다.

예외

예외 형식 조건

ArgumentOutOfRangeException

속성을 0보다 작은 값이나 3보다 큰 값으로 설정하는 경우

InvalidOperationException

속성이 설정되어 있으며 NumberFormatInfo는 읽기 전용인 경우

설명

이 속성은 다음 표의 값 중 하나입니다. "%" 기호는 PercentSymbol이며 n은 숫자입니다.

관련 패턴

0

n %

1

n%

2

%n

3

%n

플랫폼

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에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

NumberFormatInfo 클래스
NumberFormatInfo 멤버
System.Globalization 네임스페이스
NumberFormatInfo.PercentDecimalDigits 속성
NumberFormatInfo.PercentDecimalSeparator 속성
NumberFormatInfo.PercentGroupSeparator 속성
NumberFormatInfo.PercentGroupSizes 속성
PercentSymbol
NumberFormatInfo.PercentNegativePattern 속성
NumberFormatInfo.CurrencyPositivePattern 속성