Proprietà View.Window
Ottiene un riferimento alla finestra associata alla visualizzazione.
Questa proprietà non è compatibile con CLS.
Spazio dei nomi: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
Sintassi
<DispIdAttribute(4)> _
ReadOnly Property Window As WindowObject
Dim instance As View
Dim value As WindowObject
value = instance.Window
[DispIdAttribute(4)]
WindowObject Window { get; }
Osservazioni
L'oggetto WindowObject restituito rappresenta la finestra di Microsoft Office InfoPath 2007 attualmente attiva. È inoltre possibile accedere all'oggetto tramite l'insieme WindowsCollection.
![]() |
---|
Possono accedere a questo membro solo moduli eseguiti nello stesso dominio del modulo aperto oppure moduli a cui sono state concesse autorizzazioni tra domini. |
Esempio
Nell'esempio seguente, la proprietà Window dell'oggetto View viene utilizzata per impostare un riferimento al primo riquadro attività contenuto nell'insieme TaskPanes:
[C#]
TaskPane taskPane;
taskPane = thisXDocument.View.Window.TaskPanes[0];
Vedere anche
Riferimenti
Interfaccia View
Membri View
Spazio dei nomi Microsoft.Office.Interop.InfoPath.SemiTrust