Window.GetCoordinates_Method(Object, Int32, Int32, Int32, Int32)
Gets the window coordinates.
Namespace: Â JollyGiant.Emulation
Assembly: Â JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public StatusCode GetCoordinates( Object sessionID, ref int x, ref int y, ref int cx, ref int cy ) |
Visual Basic (Declaration) |
---|
Public Function GetCoordinates ( _ sessionID As Object, _ ByRef x As Integer, _ ByRef y As Integer, _ ByRef cx As Integer, _ ByRef cy As Integer _ ) As StatusCode |
Visual C++ |
---|
public: virtual StatusCode GetCoordinates( Object^ sessionID, int% x, int% y, int% cx, int% cy ) sealed |
JavaScript |
---|
function GetCoordinates(sessionID, x, y, cx, cy); |
Parameters
sessionID
Type: System...Object
The session ID.
x
Type: System..Int32
The x position of the window.
y
Type: System...Int32
The y position of the window.
cx
Type: System..Int32
The width of the window.
cy
Type: System..Int32
The height of the window.
Return Value
The return value is a StatusCode specifying the success or failure of the method.
Status code | Description |
---|---|
Ok | The method was successful. |
WHLLNOTCONNECTED | An invalid presentation space was specified, or was not connected for window services. |
WHLLPSENDED | The session stopped. |
Implements
IWindow..GetCoordinates(Object, Int32, Int32, Int32, Int32)
Exceptions
Exception | Condition |
---|---|
System.Runtime.InteropServices..::.InvalidOleVariantTypeException | The sessionID object could not be converted to a valid one-character session ID, or the value was out of range. |
See Also
Window Class
GetCoordinates Overload
JollyGiant.Emulation Namespace
Send comments on this topic to Jolly Giant Software
Copyright 2009 by Jolly Giant Software, Inc.