_Document.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)

Syntax

'Declaration
Property UserControl As Boolean
    Get
    Set
'Usage
Dim instance As _Document
Dim value As Boolean

value = instance.UserControl

instance.UserControl = value
bool UserControl { get; set; }

Property Value

Type: System.Boolean

Remarks

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. Set the property value to True or False to enable or disable the functionality.

If Word is visible to the user, this property will always return True.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace