Share via


XMLNode.Application Property

Gets an Application that represents the creator of the XMLNode control.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
ReadOnly Property Application As Application
Application Application { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Application
An Application that represents the creator of the XMLNode control.

Examples

The following code example uses the Application property to minimize the active application window. This example assumes that the current document contains an XMLNode named CustomerLastNameNode.

Private Sub MinimizeWindow()
    Dim application1 As Word.Application = _
        Me.CustomerLastNameNode.Application

    application1.ActiveWindow.WindowState = _
        Word.WdWindowState.wdWindowStateMinimize
End Sub
private void MinimizeWindow()
{
    Word.Application application1 = 
        this.CustomerLastNameNode.Application;

    application1.ActiveWindow.WindowState = 
        Word.WdWindowState.wdWindowStateMinimize;
}

.NET Framework Security

See Also

Reference

XMLNode Interface

Microsoft.Office.Tools.Word Namespace