TextSelection.TopPoint Property
Gets the top end of the selection.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property TopPoint As VirtualPoint
VirtualPoint TopPoint { get; }
property VirtualPoint^ TopPoint {
VirtualPoint^ get ();
}
abstract TopPoint : VirtualPoint with get
function get TopPoint () : VirtualPoint
Property Value
Type: EnvDTE.VirtualPoint
A VirtualPoint object.
Remarks
TopPoint returns the first VirtualPoint object to which the text selection extends, regardless of which end of the selection is the active end.
Examples
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.