Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / HighlightText Property


In This Topic
    HighlightText Property (GcTextBox)
    In This Topic
    Gets or sets whether to highlight text in the control. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property HighlightText As Boolean
    'Usage
     
    Dim instance As GcTextBox
    Dim value As Boolean
     
    instance.HighlightText = value
     
    value = instance.HighlightText
    public bool HighlightText {get; set;}

    Property Value

    true when control got focus select all the text; otherwise false.
    The default is false.
    Remarks

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

    If true, the entire contents will be selected.

    If false (the default), the contents will not be selected and the caret will be positioned according to the settings of the GrapeCity.Windows.InputMan.Primitives.EditBase.SelectionStart and GrapeCity.Windows.InputMan.Primitives.EditBase.SelectionLength properties.

    See Also