Method SetSelectedText
SetSelectedText(string, SelectionType)
Replaces SelectedText
by specified text.
public bool SetSelectedText(string text, SelectionType selType)
Parameters
text
stringNew value of
SelectedText
.selType
SelectionTypeNew type of selection.
Returns
- bool
True if operation is successful; otherwisefalse
SetSelectedText(string, SelectionType, bool)
Replaces SelectedText
by specified text.
public bool SetSelectedText(string text, SelectionType selType, bool moveToEnd)
Parameters
text
stringNew value of
SelectedText
.selType
SelectionTypeNew type of selection.
moveToEnd
boolSpecifies whether cursor should move to the end of the selection.
Returns
- bool
True if operation is successful; otherwisefalse