InfoConnect API Guide
Attachmate.Reflection.UserInterface Namespace / IFrame Interface / WindowSize Property
Example


In This Topic
    WindowSize Property
    In This Topic
    Gets the application window's size.
    Syntax
    'Declaration
     
    
    Property WindowSize As Size
    'Usage
     
    
    Dim instance As IFrame
    Dim value As Size
     
    instance.WindowSize = value
     
    value = instance.WindowSize
    Size WindowSize {get; set;}

    Property Value

    A Size structure that defines the height and width of the workspace. When the workspace is set to the Ribbon user interface mode, the minimum height is 600 pixels and the minimum width is 800 pixels. None of the other user interface modes have minimum values.
    Example

    void Sample_Frame_WindowSize()
    {
        Application app = MyReflection.ActiveApplication;
        IFrame frame = (IFrame)app.GetObject("Frame");
     
        System.Drawing.Size s = frame.WindowSize;
        Console.Write("Height/Width of InfoConnect Desktop: " +
            s.Height + "/" + s.Width);
    }
    See Also