Compartilhar via


_Application.UserControl Property

True if the application is visible or if it was created or started by the user. False if you created or started the application programmatically by using the CreateObject or GetObject functions and the application is hidden.

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

Syntax

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

value = instance.UserControl

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

Property Value

Type: System.Boolean

Remarks

When the UserControl property is False for an object, that object is released when the last programmatic reference to the object is released. If this property is False, Microsoft Excel quits when the last object in the session is released.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace