Window2.WindowType Property
Gets an XdWindowType value that indicates the type of window that is represented by the WindowObject object.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Remarks
The WindowObject objects represents the two types of windows that are used in the InfoPath application: the editing window that is used as the form area when a user fills out a form, and the designing window that is used as the design mode when a user designs a form.
Example
In the following example, the WindowType property of the Window object is used to determine the type of window that is the currently active window:
if (thisApplication.ActiveWindow.WindowType == 0)
thisXDocument.UI.Alert("The active window is an editing window.");
else
thisXDocument.UI.Alert("The active window is a designing window.");
See Also
Reference
Window2 Interface
Window2 Members
Microsoft.Office.Interop.InfoPath Namespace