Freigeben über


DocumentBase.Name Property

Definition

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 

Applies to