Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / EditBase Class / SelectionStart Property


In This Topic
    SelectionStart Property (EditBase)
    In This Topic
    Gets or sets the number of character's position started to select.
    Syntax
    'Declaration
     
    Public Property SelectionStart As Integer
    'Usage
     
    Dim instance As EditBase
    Dim value As Integer
     
    instance.SelectionStart = value
     
    value = instance.SelectionStart
    public int SelectionStart {get; set;}

    Property Value

    The number of character's position started to select.
    The default is zero.
    Exceptions
    ExceptionDescription
    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 will be 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.
    See Also