Document.Application Property (2007 System)
Gets an Application that represents the creator of the document.
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 Overridable ReadOnly Property Application As Application
'Usage
Dim instance As Document
Dim value As Application
value = instance.Application
[BrowsableAttribute(false)]
public virtual Application Application { get; }
[BrowsableAttribute(false)]
public:
virtual property Application^ Application {
Application^ get ();
}
public function get Application () : Application
Property Value
Type: Application
An Application that represents the creator of the document.
Examples
The following code example displays the application name in a message box.
This example is for a document-level customization.
Private Sub DocumentApplication()
MessageBox.Show(Me.Application.Name)
End Sub
private void DocumentApplication()
{
MessageBox.Show(this.Application.Name);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.