ToolStripTextBox.SelectedText Property

 

Gets or sets a value indicating the currently selected text in the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public string SelectedText { get; set; }

Property Value

Type: System.String

A string that represents the currently selected text in the text box.

You can assign text to this property to change the text currently selected in theToolStripTextBox. If no text is currently selected in theToolStripTextBox, this property returns a zero-length string.

.NET Framework
Available since 2.0
Return to top
Show: