Options.DefaultFilePath Property
Returns or sets default folders for items such as documents, templates, and graphics.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property DefaultFilePath ( _
Path As WdDefaultFilePath _
) As String
Get
Set
'Usage
Dim instance As Options
Dim Path As WdDefaultFilePath
Dim value As String
value = instance.DefaultFilePath(Path)
instance.DefaultFilePath(Path) = value
string this[
WdDefaultFilePath Path
] { get; set; }
Parameters
- Path
Type: Microsoft.Office.Interop.Word.WdDefaultFilePath
Required WdDefaultFilePath. The default folder to set.
Property Value
Type: System.String
Remarks
The new setting takes effect immediately.
You can use an empty string ("") to remove the setting from the Windows registry.