_Global.ChangeFileOpenDirectory(String) 方法

定义

设置 Microsoft Word在其中搜索文档的文件夹。

public:
 void ChangeFileOpenDirectory(System::String ^ Path);
public void ChangeFileOpenDirectory (string Path);
abstract member ChangeFileOpenDirectory : string -> unit
Public Sub ChangeFileOpenDirectory (Path As String)

参数

Path
String

必需的 字符串 。 文件夹路径,Word 将在该文件夹中搜索文档。

注解

下次显示“文件”菜单的“打开”对话框时,将列出指定文件夹的内容。

Word 将搜索指定的文件夹的文档,直到用户更改文件夹在 打开对话框中或当前 Word 会话结束。 DefaultFilePath[WdDefaultFilePath]使用 属性更改每个Word会话中的文档的默认文件夹。

适用于