Spread Windows Forms 7.0 Product Documentation
SelectedText Property
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > EditBase Class : SelectedText Property


Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overridable Property SelectedText As String
Visual Basic (Usage)Copy Code
Dim instance As EditBase
Dim value As String
 
instance.SelectedText = value
 
value = instance.SelectedText
C# 
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.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.