IEditorOperations.SelectLine Method
Selects the specified line.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Déclaration
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
- viewLine
Type: Microsoft.VisualStudio.Text.Formatting.ITextViewLine
The line to select.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.