Selection.End Property 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the larger of ActivePosition and AnchorPosition.
public Microsoft.VisualStudio.Extensibility.Editor.TextPosition End { get; }member this.End : Microsoft.VisualStudio.Extensibility.Editor.TextPositionPublic ReadOnly Property End As TextPosition