Window.RangeFromPoint Method
Returns the Range or Shape object that is located at the point specified by the screen position coordinate pair.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.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 horizontal distance (in pixels) from the left edge of the screen to the point.
- y
Type: System.Int32
Required Integer. The vertical distance (in pixels) from the top of the screen to the point.
Return Value
Type: System.Object
Remarks
If no range or shape is located at the coordinate pair specified, the method returns Nothing.