Udostępnij za pośrednictwem


XMLNodes.Application Property (2007 System)

Gets a Application object that represents the Microsoft Office Word application.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Application As Application
'Usage
Dim instance As XMLNodes 
Dim value As Application 

value = instance.Application
[BrowsableAttribute(false)]
public Application Application { get; }
[BrowsableAttribute(false)]
public:
property Application^ Application {
    Application^ get ();
}
public function get Application () : Application

Property Value

Type: Application
A Application object that represents the Microsoft Office Word application.

Examples

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

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

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

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

.NET Framework Security

See Also

Reference

XMLNodes Class

XMLNodes Members

Microsoft.Office.Tools.Word Namespace