Compartilhar via


Window.RangeFromPoint Method

Returns the Shape or Range object that is positioned at the specified pair of screen coordinates. If there isn’t a shape located at the specified coordinates, this method returns Nothing.

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

Syntax

'Declaration
Function RangeFromPoint ( _
    x As Integer, _
    y As Integer _
) As Object
'Usage
Dim instance As Window
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

    Required Integer. The value (in pixels) that represents the horizontal distance from the left edge of the screen, starting at the top.

  • y
    Type: System.Int32

    Required Integer. The value (in pixels) that represents the vertical distance from the top of the screen, starting on the left.

Return Value

Type: System.Object

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Excel Namespace