Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

 restrictions

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = true;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set AutoFormatOverride
          docProtect.AutoFormatOverride = True
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a {{boolean}} representing whether or not Word will autoformat to override a style lock down in this document.{excerpt}
{signature:C#}
 public boolean AutoFormatOverride{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property AutoFormatOverride() As Boolean
Remarks
MS Word
{signature}
{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
csharpcsharp
titleC#
Code Block
vb.nettitle