Page tree

Versions Compared

Key

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

Description

Excerpt

Sets or returns an int object that represents the number of heading levels that will be displayed by Word in the outline view for this document. This can be set to a number between 1 and 9.

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 int DisplayedOutlineLevels{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property DisplayedOutlineLevels() As Integer</p>Integer
Remarks

This option is set to 9 (all levels) by default.

MS Word equivalent: Outlining toolbar > Show Level

Example
Code Block
csharp
csharp
titleC#
            //--- Return DisplayOutlineLevels
          int displayOutlineLevels = viewSettings.DisplayOutlineLevels;

          //--- Set ZoomType
          viewSettings.DisplayOutlineLevels = 4;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return DisplayOutlineLevels
          Dim displayOutlineLevels As Integer = viewSettings.DisplayOutlineLevels

          '--- Set DisplayOutlineLevels
          viewSettings.DisplayOutlineLevels = 4