Spread Windows Forms 11.0 Product Documentation
Select(Int32,Int32) Method
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class > Select Method : Select(Int32,Int32) Method
Position of the first character in the control from which to start the selection
Number of characters to select
Selects the specified number of characters in the edit control starting at the specified location.
Syntax
'Declaration
 
Public Overloads Overridable Sub Select( _
   ByVal selStart As Integer, _
   ByVal selLength As Integer _
) 
'Usage
 
Dim instance As SuperEditBase
Dim selStart As Integer
Dim selLength As Integer
 
instance.Select(selStart, selLength)
public virtual void Select( 
   int selStart,
   int selLength
)

Parameters

selStart
Position of the first character in the control from which to start the selection
selLength
Number of characters to select
Remarks
To select the entire contents of a control, use the SelectAll method.
Example
control.Text = "Selection test";
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
control.AlignVert = FarPoint.Win.VerticalAlignment.Top;
control.Select(2, 8);
control.MaxLength = 9;
control.Text = "Selection test"
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center
control.AlignVert = FarPoint.Win.VerticalAlignment.Top
control.Select(2, 8)
control.MaxLength = 9
See Also

Reference

SuperEditBase Class
SuperEditBase Members
Overload List
SelectAll Method