Sets or returns the outline level of the column, as a value between 0 and 7. The outline level is used to control grouping in Excel. For example, to group several columns, set their outline levels to 1; to group a subset of columns within the group, set their outline levels to 2.

<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 int OutlineLevel{ get; set; }
</pre></td></tr></table>
<p>Public Property OutlineLevel() As Integer</p>

          int groupLevel = colProps.OutlineLevel;
          colProps.OutlineLevel = 4;
        

          Dim groupLevel As Integer = colProps.OutlineLevel
          colProps.OutlineLevel = 4