Spread Windows Forms 7.0 Product Documentation
Select(Int32,Int32) Method
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class > Select Method : Select(Int32,Int32) Method


selStart
Position of the first character in the control from which to start the selection
selLength
Number of characters to select

Glossary Item Box

Selects the specified number of characters in the edit control starting at the specified location.

Syntax

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)
C# 
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

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 BasicCopy Code
control.Text = "Selection test"
control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center
control.AlignVert = FarPoint.Win.VerticalAlignment.Top
control.Select(2, 8)
control.MaxLength = 9

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.