DocumentBase.Name 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 the name of the document.
public:
property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
Property Value
The name of the document.
Examples
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);
}
Private Sub DocumentName()
MessageBox.Show(Me.Name)
End Sub