Export (0) Print
Expand All
Expand Minimize

TopPoint Property

Visual Studio .NET 2003

Returns the top end of the selection.

[Visual Basic .NET]
Public ReadOnly Property TopPoint() As VirtualPoint
[Visual Basic 6]
Property Get TopPoint() As VirtualPoint
HRESULT __stdcall get_TopPoint(
   /* [out, retval] */ VirtualPoint** retVal
public VirtualPoint TopPoint {get;}
[JScript .NET]
public function get TopPoint() : VirtualPoint

Return Value

Returns a VirtualPoint object.


Returns the first VirtualPoint object to which the selected text 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

See Also

Applies To: TextSelection Object

© 2015 Microsoft