Window.GetPoint Method

Returns the screen coordinates of the specified range or shape.

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

Syntax

'Declaration
Sub GetPoint ( _
    <OutAttribute> ByRef ScreenPixelsLeft As Integer, _
    <OutAttribute> ByRef ScreenPixelsTop As Integer, _
    <OutAttribute> ByRef ScreenPixelsWidth As Integer, _
    <OutAttribute> ByRef ScreenPixelsHeight As Integer, _
    obj As Object _
)
'Usage
Dim instance As Window
Dim ScreenPixelsLeft As Integer
Dim ScreenPixelsTop As Integer
Dim ScreenPixelsWidth As Integer
Dim ScreenPixelsHeight As Integer
Dim obj As Object

instance.GetPoint(ScreenPixelsLeft, ScreenPixelsTop, _
    ScreenPixelsWidth, ScreenPixelsHeight, _
    obj)
void GetPoint(
    out int ScreenPixelsLeft,
    out int ScreenPixelsTop,
    out int ScreenPixelsWidth,
    out int ScreenPixelsHeight,
    Object obj
)

Parameters

  • ScreenPixelsLeft
    Type: System.Int32%
    Required Integer. The variable name to which you want Microsoft Word to return the value for the left edge of the object.
  • ScreenPixelsTop
    Type: System.Int32%
    Required Integer. The variable name to which you want Word to return the value for the top edge of the object.
  • ScreenPixelsWidth
    Type: System.Int32%
    Required Integer. The variable name to which you want Word to return the value for the width of the object.
  • ScreenPixelsHeight
    Type: System.Int32%
    Required Integer. The variable name to which you want Word to return the value for the height of the object.

Remarks

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

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Word Namespace