Spread Windows Forms 11.0 Product Documentation
SelectedText Property (EditBase)


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > EditBase Class : SelectedText Property
Gets or sets a value that indicates the currently selected text in the control.
Syntax
'Declaration
 
Public Overridable Property SelectedText As String
'Usage
 
Dim instance As EditBase
Dim value As String
 
instance.SelectedText = value
 
value = instance.SelectedText
public virtual string SelectedText {get; set;}

Property Value

A string that represents the currently selected text in the control.
The default is string.Empty
Remarks
You can assign text to this property to change the text currently selected in the control. If no text is currently selected in the control, this property inserts the new value in the Text property at the current caret position.
See Also

Reference

EditBase Class
EditBase Members
SelectionLength Property
SelectionStart Property
Select(Int32,Int32) Method