DocumentBase.UserControl 属性

定义

获取或设置一个值,用于指示文档或应用程序是否该用户创建或打开。

public bool UserControl { get; set; }

属性值

Boolean

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@) 。CreateObjectVBA。GetObject方法。

注解

如果 Microsoft Office Word 对用户可见,或者使用 UserControl Application DocumentBase 来自 Word 代码自定义项中的或对象的属性,则此属性将始终返回 true

适用于