Visual Basic (Declaration) | |
---|---|
Public Overloads Overridable Sub Select( _ ByVal selStart As Integer, _ ByVal selLength As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SuperEditBase Dim selStart As Integer Dim selLength As Integer instance.Select(selStart, selLength) |
Parameters
- selStart
- Position of the first character in the control from which to start the selection
- selLength
- Number of characters to select
To select the entire contents of a control, use the SelectAll method.
C# | Copy Code |
---|---|
control.Text = "Selection test";
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
control.AlignVert = FarPoint.Win.VerticalAlignment.Top;
control.Select(2, 8);
control.MaxLength = 9;
|
Visual Basic | Copy Code |
---|---|
control.Text = "Selection test"
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center
control.AlignVert = FarPoint.Win.VerticalAlignment.Top
control.Select(2, 8)
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