Reflection
WindowSize Property
Example 


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;}
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 Reflection Desktop: " +
        s.Height + "/" + s.Width);
}
See Also