Udostępnij za pośrednictwem


IEditorOperations.SelectLine(ITextViewLine, Boolean) Method

Definition

Selects the given line.

public:
 void SelectLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ viewLine, bool extendSelection);
public:
 void SelectLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ viewLine, bool extendSelection);
void SelectLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine const & viewLine, bool extendSelection);
public void SelectLine (Microsoft.VisualStudio.Text.Formatting.ITextViewLine viewLine, bool extendSelection);
abstract member SelectLine : Microsoft.VisualStudio.Text.Formatting.ITextViewLine * bool -> unit
Public Sub SelectLine (viewLine As ITextViewLine, extendSelection As Boolean)

Parameters

viewLine
ITextViewLine

The line to select.

extendSelection
Boolean

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

Exceptions

viewLine is null

Applies to