GetGeometryPosition Method (IDSWindow)

GetGeometryPosition Method (IDSWindow) | Send Feedback
See Also Example

X[out]
  x coordinate of the upper-left corner of the window, relative to the parent window excluding the frame

Y[out]
  y coordinate of the upper-left corner of the window, relative to the parent window excluding the frame

Gets the upper-left corner of the application or document window, relative to the parent window excluding the frame.

# Syntax

Visual Basic |
--- | ---
    Sub GetGeometryPosition( _
       ByRef X As System.Integer, _
       ByRef Y As System.Integer _
    )

C# |
--- | ---
    void GetGeometryPosition(
       out System.int X,
       out System.int Y
    )

JavaScript |
--- | ---
    GetGeometryPosition(
    ) : {
       X : Number,
       Y : Number
    }

COM native C++ |
--- | ---
    HRESULT GetGeometryPosition(
       LONG* X,
       LONG* Y
    )

C++ |
--- | ---
    DSRESULT GetGeometryPosition(
       long* X,
       long* Y
    )

#### Parameters

X[out]
  x coordinate of the upper-left corner of the window, relative to the parent window excluding the frame
Y[out] or Return Value
  y coordinate of the upper-left corner of the window, relative to the parent window excluding the frame

# Example

Get and Set Windows Values (C#)
Get and Set Windows Values (VB.NET)
Get and Set Windows Values (VBA)

# See Also

####

IDSWindow Interface
IDSWindow Members
IDSWindow::GetGeometrySize Method
IDSWindow::SetGeometryPosition Method
IDSWindow::SetGeometrySize Method

# Availability

DraftSight V1R2.0