DocumentBase.Application Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an Application that represents the creator of the document.
public:
property Microsoft::Office::Interop::Word::Application ^ Application { Microsoft::Office::Interop::Word::Application ^ get(); };
public Microsoft.Office.Interop.Word.Application Application { get; }
member this.Application : Microsoft.Office.Interop.Word.Application
Public ReadOnly Property Application As Application
Property Value
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 void DocumentApplication()
{
MessageBox.Show(this.Application.Name);
}
Private Sub DocumentApplication()
MessageBox.Show(Me.Application.Name)
End Sub