Share via


DocumentBase.UserControl Property

Definition

Gets or sets a value that indicates whether 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

Property Value

true if the document or application was created or opened by the user; false if the document or application was created or opened programmatically from another Microsoft Office application with the 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@) method or the VBA.Interaction.CreateObject or VBA.Interaction.GetObject method.

Remarks

If Microsoft Office Word is visible to the user, or if you use the UserControl property of a Application or DocumentBase object from within a Word code customization, this property will always return true.

Applies to