InfoConnect for Unisys
WindowMode Property
Example 


Gets the WindowMode.
Syntax
'Declaration
 
ReadOnly Property WindowMode As WindowModes
'Usage
 
Dim instance As IFrame
Dim value As WindowModes
 
value = instance.WindowMode
WindowModes WindowMode {get;}
Example
void Sample_Frame_WindowMode()
{
    Application app = MyReflection.ActiveApplication;
    IFrame frame = (IFrame)app.GetObject("Frame");
 
    if (frame.WindowMode == WindowModes.Browser ||
        frame.WindowMode == WindowModes.Ribbon)
    
        Console.Write("There are " + frame.ViewCount + " views open within " +
               "this frame instance.\n");    
    else
        Console.Write("Since this frame is in \"classic\" mode, there cannot be more " +
               "than one session view open in it.");
}
See Also