Document.UserControl Property (2007 System)
Gets or sets a value that indicates whether the document or application was created or opened by the user.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property UserControl As Boolean
'Usage
Dim instance As Document
Dim value As Boolean
value = instance.UserControl
instance.UserControl = value
[BrowsableAttribute(false)]
public bool UserControl { get; set; }
[BrowsableAttribute(false)]
public:
property bool UserControl {
bool get ();
void set (bool value);
}
public function get UserControl () : boolean
public function set UserControl (value : boolean)
Property Value
Type: System.Boolean
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 Open(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, 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 call the UserControl property of a Word Application or Document object from within a Word code customization, this property will always return true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.