TextBox.PlaceholderText 속성

정의

사용자 작업 또는 다른 작업에 의해 값이 변경될 때까지 컨트롤에 표시되는 텍스트를 가져오거나 설정합니다.

public:
 property Platform::String ^ PlaceholderText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PlaceholderText();

void PlaceholderText(winrt::hstring value);
public string PlaceholderText { get; set; }
var string = textBox.placeholderText;
textBox.placeholderText = string;
Public Property PlaceholderText As String
<TextBox PlaceholderText="placeholderString"/>

속성 값

String

Platform::String

winrt::hstring

값이 입력되지 않은 경우 컨트롤에 표시되는 텍스트입니다. 기본값은 빈 문자열("")입니다.

적용 대상