Udostępnij za pośrednictwem


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

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace