DocumentBase.UserControl 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,用于指示文档或应用程序是否该用户创建或打开。
public bool UserControl { get; set; }
属性值
true如果文档或应用程序是由用户创建或打开的,则为;false如果文档或应用程序是通过方法或 VBA 以编程方式从另一个 Microsoft Office 应用程序创建或打开的,则为 Microsoft.Office.Interop.Word.Documents.Open(System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@) 。CreateObject或VBA。GetObject方法。
注解
如果 Microsoft Office Word 对用户可见,或者使用 UserControl Application DocumentBase 来自 Word 代码自定义项中的或对象的属性,则此属性将始终返回 true 。