_Application.UserControl Property

Determines if the document or application was created or opened by the user.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

bool UserControl { get; }

Property Value

Type: System.Boolean

This 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.

If Microsoft Word is visible to the user, or if you call the UserControl property of an Application object from within a Word code module, this property will always return True.

Community Additions

ADD
Show: