Partager via


DocumentBase.FullName Property

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property FullName As String
public string FullName { get; }

Property Value

Type: System.String
The name of the document, including the drive or Web path.

Remarks

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

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 Sub DocumentFullName()
    MessageBox.Show(Me.FullName.ToString())
End Sub
private void DocumentFullName()
{
    MessageBox.Show(this.FullName.ToString());
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace