Aracılığıyla paylaş


ISelectionTransformer.MoveTo Method

Definition

Overloads

MoveTo(VirtualSnapshotPoint, Boolean, PositionAffinity)

Moves the insertion and active points to the given location.

MoveTo(VirtualSnapshotPoint, VirtualSnapshotPoint, VirtualSnapshotPoint, PositionAffinity)

Sets the anchor, active, and insertion points to the specified locations.

MoveTo(VirtualSnapshotPoint, Boolean, PositionAffinity)

Moves the insertion and active points to the given location.

public:
 void MoveTo(Microsoft::VisualStudio::Text::VirtualSnapshotPoint point, bool select, Microsoft::VisualStudio::Text::PositionAffinity insertionPointAffinity);
public void MoveTo (Microsoft.VisualStudio.Text.VirtualSnapshotPoint point, bool select, Microsoft.VisualStudio.Text.PositionAffinity insertionPointAffinity);
abstract member MoveTo : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * bool * Microsoft.VisualStudio.Text.PositionAffinity -> unit
Public Sub MoveTo (point As VirtualSnapshotPoint, select As Boolean, insertionPointAffinity As PositionAffinity)

Parameters

point
VirtualSnapshotPoint

The point to move to.

select
Boolean

If true, leaves the anchor point where it is. If false, moves the anchor point too.

insertionPointAffinity
PositionAffinity

The affinity of the insertion point. This is used in places like word-wrap where one buffer position can represent both the end of one line and the beginning of the next.

Applies to

MoveTo(VirtualSnapshotPoint, VirtualSnapshotPoint, VirtualSnapshotPoint, PositionAffinity)

Sets the anchor, active, and insertion points to the specified locations.

public:
 void MoveTo(Microsoft::VisualStudio::Text::VirtualSnapshotPoint anchorPoint, Microsoft::VisualStudio::Text::VirtualSnapshotPoint activePoint, Microsoft::VisualStudio::Text::VirtualSnapshotPoint insertionPoint, Microsoft::VisualStudio::Text::PositionAffinity insertionPointAffinity);
public void MoveTo (Microsoft.VisualStudio.Text.VirtualSnapshotPoint anchorPoint, Microsoft.VisualStudio.Text.VirtualSnapshotPoint activePoint, Microsoft.VisualStudio.Text.VirtualSnapshotPoint insertionPoint, Microsoft.VisualStudio.Text.PositionAffinity insertionPointAffinity);
abstract member MoveTo : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Text.PositionAffinity -> unit
Public Sub MoveTo (anchorPoint As VirtualSnapshotPoint, activePoint As VirtualSnapshotPoint, insertionPoint As VirtualSnapshotPoint, insertionPointAffinity As PositionAffinity)

Parameters

anchorPoint
VirtualSnapshotPoint

Specifies the stationary end of the selection span.

activePoint
VirtualSnapshotPoint

Specifies the mobile end of the selection span.

insertionPoint
VirtualSnapshotPoint

Specifies the location of the caret.

insertionPointAffinity
PositionAffinity

Specifies the affinity of the insertion point. This is used in places like word-wrap where one buffer position can represent both the end of one line and the beginning of the next.

Applies to