Reflection
WindowLocation Property
Example 


Gets the application window's location.
Syntax
'Declaration
 
Property WindowLocation As Point
'Usage
 
Dim instance As IFrame
Dim value As Point
 
instance.WindowLocation = value
 
value = instance.WindowLocation
Point WindowLocation {get; set;}
Example

void Sample_Frame_WindowLocation()
{
    Application app = MyReflection.ActiveApplication;
    IFrame frame = (IFrame)app.GetObject("Frame");
 
    System.Drawing.Point p = frame.WindowLocation;
    Console.Write("x/y location of Reflection Desktop: " +
        p.X + "/" + p.Y);
}
See Also