Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a boolean representing whether or not Word will autoformat to override a style lock down in this document.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public boolean AutoFormatOverride{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property AutoFormatOverride() As Boolean</p>Boolean
Remarks

MS Word equivalent: Tools menu > Protect Document... > 1. Formatting restrictions section > Settings... link > Formatting section > Allow AutoFormat to override formatting restrictions

Example
Code Block
csharp
csharp
titleC#
            //---- Get AutoFormatOverride
          bool autoFormatOverride = docProtect.AutoFormatOverride;

          //--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Get AutoFormatOverride
          Dim autoFormatOverride As Boolean = docProtect.AutoFormatOverride

          '--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = True