Compartilhar via


View.Window Propriedade

Definição

Obtém uma referência a um Window objeto associado à exibição.

public:
 abstract property Microsoft::Office::InfoPath::Window ^ Window { Microsoft::Office::InfoPath::Window ^ get(); };
public abstract Microsoft.Office.InfoPath.Window Window { get; }
member this.Window : Microsoft.Office.InfoPath.Window
Public MustOverride ReadOnly Property Window As Window

Valor da propriedade

Um Window associado à exibição atual.

Exemplos

O exemplo a seguir usa a propriedade Window da View classe para obter uma referência ao objeto Window associado ao modo de exibição atual.

Window myViewWindow = this.CurrentView.Window; Dim myViewWindow As Window = Me.CurrentView.Window

Comentários

O objeto Window retornado representa a janela do Microsoft InfoPath atualmente ativa. Ele também pode ser acessado por meio do WindowCollection objeto e pela ActiveWindow propriedade da Application classe.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Aplica-se a