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

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public boolean AutoFormatOverride{ get; set; }
</pre></td></tr></table>
<p>Public Property AutoFormatOverride() As Boolean</p>

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


          //---- Get AutoFormatOverride
          bool autoFormatOverride = docProtect.AutoFormatOverride;

          //--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = true;
        

          '--- Get AutoFormatOverride
          Dim autoFormatOverride As Boolean = docProtect.AutoFormatOverride

          '--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = True