Udostępnij za pośrednictwem


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
function get TopPoint () : VirtualPoint

Property Value

Type: EnvDTE.VirtualPoint
A VirtualPoint object.

Remarks

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

See Also

Reference

TextSelection Interface

EnvDTE Namespace