Window2.WindowType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an XdWindowType value that indicates the type of window that is represented by the WindowObject object.
public:
property Microsoft::Office::Interop::InfoPath::XdWindowType WindowType { Microsoft::Office::Interop::InfoPath::XdWindowType get(); };
public Microsoft.Office.Interop.InfoPath.XdWindowType WindowType { get; }
member this.WindowType : Microsoft.Office.Interop.InfoPath.XdWindowType
Public ReadOnly Property WindowType As XdWindowType
Property Value
Implements
Examples
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.");
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.