Share via


IEditorOperations.SelectLine Method

Selects the specified line.

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

Syntax

'Declaration
Sub SelectLine ( _
    viewLine As ITextViewLine, _
    extendSelection As Boolean _
)
void SelectLine(
    ITextViewLine viewLine,
    bool extendSelection
)
void SelectLine(
    ITextViewLine^ viewLine, 
    bool extendSelection
)
abstract SelectLine : 
        viewLine:ITextViewLine * 
        extendSelection:bool -> unit
function SelectLine(
    viewLine : ITextViewLine, 
    extendSelection : boolean
)

Parameters

  • extendSelection
    Type: System.Boolean

    If true, the selection is extended when the caret is moved; if false, the selection is not extended.

Exceptions

Exception Condition
ArgumentNullException

viewLine is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace