Versions Compared

Key

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

...

Remarks

The default value for a new Document is Autoformat.Normal.

MS Word equivalent: Format menu > Autoformat... > Please select a document type to help improve the formatting process

 

 

Example
Code Block
csharp
csharp
titleC#
          //--- Return AutoformatType
          Document.Autoformat oAutoformatType = oDocument.AutoformatType;

          //--- Set AutoformatType
          oDocument.AutoformatType = Document.Autoformat.Letter;
        
Code Block
vb.net
vb.net
titlevb.net
          '--- Return AutoformatType
          Dim oAutoformatType As Document.Autoformat = oDocument.AutoformatType

          '--- Set AutoformatType
          oDocument.AutoformatType = Document.Autoformat.Letter