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

声明
ReadOnly Property AnchorPoint As VirtualSnapshotPoint
    Get
VirtualSnapshotPoint AnchorPoint { get; }
property VirtualSnapshotPoint AnchorPoint {
    VirtualSnapshotPoint get ();
}
abstract AnchorPoint : VirtualSnapshotPoint
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