Expand Minimize

DocumentBase.Name Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the name 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)

public string Name { get; }

Property Value

Type: System.String
The name of the document.

The following code example displays a message that shows the name of the document.

To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentName()
{
    MessageBox.Show(this.Name);
}

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft