Share via


_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)

Syntax

'Declaration
ReadOnly Property UserControl As Boolean
    Get
'Usage
Dim instance As _Application
Dim value As Boolean

value = instance.UserControl
bool UserControl { get; }

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.

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.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace