Spread Windows Forms 7.0 Product Documentation
SelectionStart Property
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > EditBase Class : SelectionStart Property


Glossary Item Box

Gets or sets the number of the character's position to start selecting from.

Syntax

Visual Basic (Declaration) 
Public Overridable Property SelectionStart As Integer
Visual Basic (Usage)Copy Code
Dim instance As EditBase
Dim value As Integer
 
instance.SelectionStart = value
 
value = instance.SelectionStart
C# 
public virtual int SelectionStart {get; set;}

Property Value

The character position to start selecting from.
The default is zero.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is less than zero.

Remarks

If no text is selected in the control, this property indicates the insertion point for new text. If you set this property to a location beyond the length of the text in the control, the selection start position is placed after the last character. When text is selected in the control, changing this property might decrease the value of the SelectionLength property. If the remaining text in the control after the position indicated by the SelectionStart property is less than the value of the SelectionLength property, the value of the SelectionLength property is automatically decreased. The value of the SelectionStart property never causes an increase in the SelectionLength property.

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.