Compartilhar via


IEditorOperations.ExtendSelection Method

Extends the current selection span to the specified position.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Sub ExtendSelection ( _
    newEnd As Integer _
)
void ExtendSelection(
    int newEnd
)
void ExtendSelection(
    int newEnd
)
abstract ExtendSelection : 
        newEnd:int -> unit
function ExtendSelection(
    newEnd : int
)

Parameters

  • newEnd
    Type: Int32

    The new character position to which the selection is to be extended.

Exceptions

Exception Condition
ArgumentOutOfRangeException

newEnd is less than 0.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace