Spread Windows Forms 12.0 Product Documentation
SelectionLength Property (SuperEditBase)

FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : SelectionLength Property
Gets or sets the number of characters selected in the edit control.
Public Overridable Property SelectionLength As Integer
Dim instance As SuperEditBase
Dim value As Integer
instance.SelectionLength = value
value = instance.SelectionLength
public virtual int SelectionLength {get; set;}

Property Value

Integer number of characters in the length of the selection

Setting this property to a value less than zero causes a run-time error.

To return the selected text in the control, use the SelectedText property.

This property is available at run time only.

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
See Also


SuperEditBase Class
SuperEditBase Members
SelectedText Property