Freigeben über


Window2.WindowType Eigenschaft

Definition

Ruft einen XdWindowType Wert ab, der den Typ des Fensters angibt, das durch das WindowObject -Objekt dargestellt wird.

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

Eigenschaftswert

Implementiert

Beispiele

Im folgenden Beispiel wird die WindowType-Eigenschaft des Window-Objekts verwendet, um den Typ des Fensters zu bestimmen, das momentan aktiv ist:

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.");

Hinweise

Das WindowObject-Objekt stellt die beiden Fenstertypen dar, die in der InfoPath-Anwendung verwendet werden: das Bearbeitungsfenster, das als Formularbereich verwendet wird, wenn ein Benutzer ein Formular ausfüllt, und das Entwurfsfenster, das im Entwurfsmodus verwendet wird, wenn ein Benutzer ein Formular entwirft.

Gilt für: