Visual Basic (Declaration) | |
---|---|
Public Overridable Property SelectionStart As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SuperEditBase Dim value As Integer instance.SelectionStart = value value = instance.SelectionStart |
C# | |
---|---|
public virtual int SelectionStart {get; set;} |
Property Value
Integer number of characters in the edit control where the selection startsThe value of this property is based on the number of characters in the control. The first position is zero.
This property is available at run time only.
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 |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2