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


In This Topic
    WindowMode Property
    In This Topic
    Gets the WindowMode.
    Syntax
    'Declaration
     
    
    <ObsoleteAttribute("IFrame.WindowMode is deprecated, please use IUserInterface.UserInterfaceMode instead.")>
    ReadOnly Property WindowMode As WindowModes
    'Usage
     
    
    Dim instance As IFrame
    Dim value As WindowModes
     
    value = instance.WindowMode
    [Obsolete("IFrame.WindowMode is deprecated, please use IUserInterface.UserInterfaceMode instead.")]
    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