Window.GetPoint(Int32, Int32, Int32, Int32, Object) Method

Definition

Returns the screen coordinates of the specified range or shape.

public:
 void GetPoint([Runtime::InteropServices::Out] int % ScreenPixelsLeft, [Runtime::InteropServices::Out] int % ScreenPixelsTop, [Runtime::InteropServices::Out] int % ScreenPixelsWidth, [Runtime::InteropServices::Out] int % ScreenPixelsHeight, System::Object ^ obj);
public void GetPoint (out int ScreenPixelsLeft, out int ScreenPixelsTop, out int ScreenPixelsWidth, out int ScreenPixelsHeight, object obj);
abstract member GetPoint : int * int * int * int * obj -> unit
Public Sub GetPoint (ByRef ScreenPixelsLeft As Integer, ByRef ScreenPixelsTop As Integer, ByRef ScreenPixelsWidth As Integer, ByRef ScreenPixelsHeight As Integer, obj As Object)

Parameters

ScreenPixelsLeft
Int32

Required Integer. The variable name to which you want Microsoft Word to return the value for the left edge of the object.

ScreenPixelsTop
Int32

Required Integer. The variable name to which you want Word to return the value for the top edge of the object.

ScreenPixelsWidth
Int32

Required Integer. The variable name to which you want Word to return the value for the width of the object.

ScreenPixelsHeight
Int32

Required Integer. The variable name to which you want Word to return the value for the height of the object.

obj
Object

Required Object. A Range or Shape object.

Remarks

If the entire range or shape isn't visible on the screen, an error occurs.

Applies to