Spread Windows Forms 8.0 Product Documentation
SelectionStart Property (SuperEditBase)
Example 


Gets or sets the starting point of selected characters or the position of the insertion point if no characters are selected.
Syntax
'Declaration
 
Public Overridable Property SelectionStart As Integer
'Usage
 
Dim instance As SuperEditBase
Dim value As Integer
 
instance.SelectionStart = value
 
value = instance.SelectionStart
public virtual int SelectionStart {get; set;}

Property Value

Integer number of characters in the edit control where the selection starts
Remarks

The 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.

Example
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;
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
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

Reference

SuperEditBase Class
SuperEditBase Members
SelectedText Property
SelectionLength Property

 

 


Copyright © GrapeCity, inc. All rights reserved.