Condividi tramite


DocumentBase.FullName Property

Definition

Gets the name of the document, including the drive or Web path.

public:
 property System::String ^ FullName { System::String ^ get(); };
public string FullName { get; }
member this.FullName : string
Public ReadOnly Property FullName As String

Property Value

The name of the document, including the drive or Web path.

Examples

The following code example displays a message that shows the path and name of the document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentFullName()
{
    MessageBox.Show(this.FullName.ToString());
}
Private Sub DocumentFullName()
    MessageBox.Show(Me.FullName.ToString())
End Sub

Remarks

Using this property is equivalent to using the Path, PathSeparator, and Name properties in sequence.

Applies to