共用方式為


DocumentBase.Application Property

Gets an Application that represents the creator of the document.

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

Syntax

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

Property Value

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

Examples

The following code example displays the application name in a message box. To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentApplication()
    MessageBox.Show(Me.Application.Name)
End Sub
private void DocumentApplication()
{
    MessageBox.Show(this.Application.Name);
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace