Document.EnforceStyle Property (2007 System)
Gets or sets a value that indicates whether formatting restrictions are enforced in a protected document.
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 EnforceStyle As Boolean
'Usage
Dim instance As Document
Dim value As Boolean
value = instance.EnforceStyle
instance.EnforceStyle = value
[BrowsableAttribute(false)]
public bool EnforceStyle { get; set; }
[BrowsableAttribute(false)]
public:
property bool EnforceStyle {
bool get ();
void set (bool value);
}
public function get EnforceStyle () : boolean
public function set EnforceStyle (value : boolean)
Property Value
Type: System.Boolean
true if formatting restrictions are enforced in a protected document; otherwise, false.
.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.