Defines the edit control portion's text contents.
Get
| C# | string Text = object.Text; |
| VB.NET | Text = object.Text As String |
| C++ | _bstr_t Text = object->Text; _bstr_t Text = object->GetText(); |
| C | HRESULT object->get_Text(BSTR* Text); |
Put
| C# | string object.Text = Text; |
| VB.NET | object.Text = Text As String |
| C++ | _bstr_t object->Text = Text; void object->PutText(_bstr_t Text); |
| C | HRESULT object->put_Text(BSTR Text); |
object
Text
Defines the edit control portion's text contents.
The Text property defines the edit control portion's text contents.
The Text property contains the text contents in the edit control portion of a simple or drop down combo box. The text can be replaced by assigning a new text value to the Text property.
In a drop down list combo box, the Text property contains the text of the currently selected item (its first displayed column). In this case the property cannot be updated.
The Edit.SelText property defines the currently selected text of the edit control portion.
See Also SftBoxEdit Object | Object Hierarchy