Reflection .NET API
Attachmate.Reflection Assembly / Attachmate.Reflection.UserInterface Namespace / IFrame Interface / WindowLocation Property
Example


In This Topic
    WindowLocation Property
    In This Topic
    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