Gets or sets whether selected text loses its highlighting when the control loses focus.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overridable Property HideSelection As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As SuperEditBase
Dim value As Boolean
instance.HideSelection = value
value = instance.HideSelection
|
| C# | |
|---|
public virtual bool HideSelection {get; set;} |
Return Value
Boolean value:
true to hide the selection highlight when the control loses focus;
false otherwise
Example
| C# | Copy Code |
|---|
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition;
control.Text = "This is a test for HideSelection";
control.ControlType = FarPoint.Win.ControlType.Normal;
control.SelectionStart = 2;
control.SelectionLength = 5;
control.Selectable = true;
control.HideSelection = false;
control.AutoMenu = true;
textBox1.Text = control.SelectedText();
control.MaxLength = 9; |
| Visual Basic | Copy Code |
|---|
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition
control.Text = "This is a test for HideSelection"
control.ControlType = FarPoint.Win.ControlType.Normal
control.SelectionStart = 2
control.SelectionLength = 5
control.Selectable = True
control.HideSelection = False
control.AutoMenu = True
TextBox1.Text = control.SelectedText()
control.MaxLength = 9
|
Remarks
See Also