Defines the text shown while the field is empty.
Get
| C# | string Text = object.PlaceholderText; |
| VB.NET | Text = object.PlaceholderText As String |
| C++ | _bstr_t Text = object->PlaceholderText; _bstr_t Text = object->GetPlaceholderText(); |
| C | HRESULT object->get_PlaceholderText(BSTR* Text); |
Put
| C# | string object.PlaceholderText = Text; |
| VB.NET | object.PlaceholderText = Text As String |
| C++ | _bstr_t object->PlaceholderText = Text; void object->PutPlaceholderText(_bstr_t Text); |
| C | HRESULT object->put_PlaceholderText(BSTR Text); |
object
Text
Defines the text shown while the field is empty.
The PlaceholderText property defines the text shown in an empty date field control (AllowEmpty), for example "No date". The default is an empty string. p The placeholder is shown in the color PlaceholderForeColor while the field is empty. In segment editing (EditStyle) it is hidden while the field has the input focus, so the user sees the parts being typed. In free-form editing, the text box shows it as its cue banner, in the system's gray, also while it has the input focus.
See Also SftDate Object | Object Hierarchy | Values