Compartir a través de


DocumentWindow.RangeFromPoint Method

Returns the Shape object that is located at the point specified by the screen position coordinate pair. If no shape is located at the coordinate pair specified, then the method returns a null reference (Nothing in Visual Basic).

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function RangeFromPoint ( _
    X As Integer, _
    Y As Integer _
) As Object
'Usage
Dim instance As DocumentWindow
Dim X As Integer
Dim Y As Integer
Dim returnValue As Object

returnValue = instance.RangeFromPoint(X, _
    Y)
Object RangeFromPoint(
    int X,
    int Y
)

Parameters

  • X
    Type: System.Int32
    The horizontal distance (in pixels) from the left edge of the screen to the point.
  • Y
    Type: System.Int32
    The vertical distance (in pixels) from the top of the screen to the point.

Return Value

Type: System.Object

See Also

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace