_Document.UserControl 属性

定义

确定文档或应用程序是由用户创建还是打开。Determines if the document or application was created or opened by the user.

public:
 property bool UserControl { bool get(); void set(bool value); };
public bool UserControl { get; set; }
member this.UserControl : bool with get, set
Public Property UserControl As Boolean

属性值

Boolean

注解

如果文档或应用程序是由用户创建或打开的,则此属性返回True ,如果以编程方式创建或打开文档或应用程序,则返回FalseThis property returns True if the document or application was created or opened by the user, and False if the document or application was created or opened programmatically. 将属性值设置为TrueFalse可启用或禁用功能。Set the property value to True or False to enable or disable the functionality.

如果 Word 对用户可见,则此属性将始终返回TrueIf Word is visible to the user, this property will always return True.

适用于