NumberBox.Text 속성

정의

Value 속성의 문자열 형식 표현을 가져오거나 설정합니다.

이 설명서는 UWP용 WinUI 2에 적용됩니다(Windows 앱 SDKWinUI의 경우 Windows 앱 SDK 네임스페이스 참조).

public:
 property Platform::String ^ Text { Platform::String ^ get(); void set(Platform::String ^ value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
winrt::hstring Text();

void Text(winrt::hstring value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
winrt::hstring Text();

void Text(winrt::hstring value);
public string Text { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public string Text { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property Text As String

속성 값

String

Platform::String

winrt::hstring

특성
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

설명

이 속성은 형식 변환 없이 의 숫자 내용에 대한 문자열 표현을 가져오는 데 사용됩니다. Value의 콘텐츠는 초기 설정에서 이 속성의 콘텐츠를 덮어쓰게 됩니다. 초기 설정 후에는 변경 내용이 다른 값으로 프로그로 처리되지만 Value 를 통해 프로그래밍 방식으로 일관되게 변경하면 NumberBox 가 이 속성을 통해 숫자가 아닌 문자를 허용한다는 개념적 오해를 방지할 수 있습니다.

적용 대상