TextSelection::TopPoint Property
Visual Studio 2015
Gets the top end of the selection.
Assembly: EnvDTE (in EnvDTE.dll)
TopPoint returns the first VirtualPoint object to which the text selection extends, regardless of which end of the selection is the active end.
Sub TopPointExample() ' Before running this example, open a code document. Dim objSel As TextSelection = DTE.ActiveDocument.Selection MsgBox("TopPoint line: " & objSel.TopPoint.Line) End Sub
Show: