Reputation: 431
I try to set Outline Level for list, programmatically from code behind with Vsto C#
Upvotes: 0
Views: 504
Reputation: 3221
You can set the Outline Level using this code here:
Application.ActiveDocument.Styles["MyStyle"].ParagraphFormat.OutlineLevel =
WdOutlineLevel.wdOutlineLevel2;
The enum Microsoft.Office.Interop.Word.WdOutlineLevel
contains all the levels that can be set.
(And maybe you should also add some additional error handling that fits your needs.)
Upvotes: 1