ITextSelection::Select Method (VirtualSnapshotPoint, VirtualSnapshotPoint)

 

Selects the text between the two VirtualSnapshotPoint objects.

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

void Select(
	VirtualSnapshotPoint anchorPoint,
	VirtualSnapshotPoint activePoint
)

Parameters

anchorPoint
Type: Microsoft.VisualStudio.Text::VirtualSnapshotPoint

The anchor point of the selection.

activePoint
Type: Microsoft.VisualStudio.Text::VirtualSnapshotPoint

The active point of the selection.

A reverse selection is created if the active point comes before the anchor point.

The active point normally corresponds to the end of the selection that contains the caret position. If the selection is reversed, then the active point comes before the anchor point.

Return to top
Show: