Compartilhar via


ITextSelection.AnchorPoint Property

Gets the anchor point of the selection.

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

Syntax

'Declaration
ReadOnly Property AnchorPoint As VirtualSnapshotPoint
VirtualSnapshotPoint AnchorPoint { get; }
property VirtualSnapshotPoint AnchorPoint {
    VirtualSnapshotPoint get ();
}
abstract AnchorPoint : VirtualSnapshotPoint with get
function get AnchorPoint () : VirtualSnapshotPoint

Property Value

Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The anchor point.

Remarks

The anchor point normally corresponds to the end of the selection that does not contain the caret position .If the selection is reversed, then this point comes after the active point.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace