Document.FullName Property (2007 System)
Gets the name of the document, including the drive or Web path.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Property FullName As String
'Usage
Dim instance As Document
Dim value As String
value = instance.FullName
public string FullName { get; }
public:
property String^ FullName {
String^ get ();
}
public function get FullName () : String
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.
This example is for a document-level customization.
Private Sub DocumentFullName()
MessageBox.Show(Me.FullName.ToString())
End Sub
private void DocumentFullName()
{
MessageBox.Show(this.FullName.ToString());
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.