Export (0) Print
Expand All
ID
Top
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
[C++]
HRESULT __stdcall get_TopPoint(
   /* [out, retval] */ VirtualPoint** retVal
);
[C#]
public VirtualPoint TopPoint {get;}
[JScript .NET]
public function get TopPoint() : VirtualPoint

Return Value

Returns a VirtualPoint object.

Remarks

Returns the first VirtualPoint object to which the selected text extends, regardless of which end of the selection is the active end.

Example

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

Show:
© 2015 Microsoft