IEditorOperations::SelectLine Method (ITextViewLine^, Boolean)

 

Selects the specified line.

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

void SelectLine(
	ITextViewLine^ viewLine,
	bool extendSelection
)

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.

Exception Condition
ArgumentNullException

viewLine is null.

Return to top
Show: