Compartir a través de


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)

Syntax

'Declaration
Sub Select ( _
    anchorPoint As VirtualSnapshotPoint, _
    activePoint As VirtualSnapshotPoint _
)
void Select(
    VirtualSnapshotPoint anchorPoint,
    VirtualSnapshotPoint activePoint
)
void Select(
    VirtualSnapshotPoint anchorPoint, 
    VirtualSnapshotPoint activePoint
)
abstract Select : 
        anchorPoint:VirtualSnapshotPoint * 
        activePoint:VirtualSnapshotPoint -> unit
function Select(
    anchorPoint : VirtualSnapshotPoint, 
    activePoint : VirtualSnapshotPoint
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Select Overload

Microsoft.VisualStudio.Text.Editor Namespace