Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / HighlightText Property


In This Topic
HighlightText Property (GcTextBox)
In This Topic
Gets or sets whether to highlight text in the control.
Syntax
'Declaration
 
Public Property HighlightText As Boolean
 
'Usage
 
Dim instance As GcTextBox
Dim value As Boolean
 
instance.HighlightText = value
 
value = instance.HighlightText

Property Value

true when the control gets focus and all the text is selected; otherwise, false.
The default is false.
Remarks

This property allows you to highlight all text in the control upon receiving focus.

If true, the contents are selected.

If false (the default), the contents are not selected and the caret is positioned according to the settings of the SelectionStart and EditBase.SelectionLength properties.

See Also