Expand Minimize

IEditorOperations.SelectLine Method

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.

ExceptionCondition
ArgumentNullException

viewLine is null.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft