ITextSelection::Select Method (SnapshotSpan, Boolean)

 

Selects the text in the specified selection span.

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

void Select(
	SnapshotSpan selectionSpan,
	bool isReversed
)

Parameters

selectionSpan
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The SnapshotSpan of text to select in the underlying text buffer.

isReversed
Type: System::Boolean

true if the selection was made in a reverse direction, otherwise false.

In a reversed selection, the active point is Span.Start and the anchor point is Span.End. In a non-reversed selection, the active point is span.end and the anchor point is Span.Start.

Return to top
Show: