Defines the currently selected text.
Get
| VB.NET | Text = object.SelText As String |
| VB | Text = object.SelText As String |
| C#.NET | string Text = object.SelText; |
| VC++ | _bstr_t Text = object->SelText; _bstr_t Text = object->GetSelText(); |
| C | HRESULT object->get_SelText(BSTR* Text); |
Put
| VB.NET | object.SelText = Text As String |
| VB | object.SelText = Text As String |
| C#.NET | string object.SelText = Text; |
| VC++ | _bstr_t object->SelText = Text; void object->PutSelText(_bstr_t Text); |
| C | HRESULT object->put_SelText(BSTR Text); |
object
Text
Defines the currently selected text in the edit control portion.
The SelText property defines the currently selected text.
The SelText property contains the currently selected text in the edit control portion of a simple or drop down combo box. The selected text can be replaced by assigning a new text value to the SelText property.
The Edit.Text property defines the complete contents of the edit control portion.
The methods Edit.GetSelection and Edit.SetSelection can be used to retrieve or set the position of the selection.
This property cannot be used with a drop down list combo box.
See Also SftBoxEdit Object | Object Hierarchy