TextBox.PlaceholderText 属性

定义

获取或设置当控件没有文本且不具有焦点时要显示的文本。Gets or sets the text that is displayed when the control has no text and does not have the focus.

public:
 virtual property System::String ^ PlaceholderText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(true)]
public virtual string PlaceholderText { get; set; }
member this.PlaceholderText : string with get, set
Public Overridable Property PlaceholderText As String

属性值

当控件没有文本并且没有焦点时所显示的文本。The text that is displayed when the control has no text and does not have the focus.

属性

适用于