语言

ProtectedViewWindow.SourcePath 属性

定义

获取在指定的受保护视图窗口中打开的源文件的路径。

public:
 property System::String ^ SourcePath { System::String ^ get(); };
public string SourcePath { get; }
Public ReadOnly Property SourcePath As String

属性值

在指定的“受保护视图”窗口中打开的源文件的路径。

注解

只读。

路径不包含结尾字符(例如,“C:\MSOffice”)。 使用该 PathSeparator 属性添加分隔文件夹和驱动器盘符的字符。 使用对象的 ProtectedViewWindow 返回SourceName不带路径的源文件名。

适用于