This documentation is archived and is not being maintained.

HeadingStyles.Add Method

Returns a HeadingStyle object that represents a new heading style added to a document. The new heading style will be included whenever you compile a table of contents or table of figures.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

HeadingStyle Add(
	ref Object Style,
	short Level


Type: System.Object%
Required Object. The style you want to add. You can specify this argument by using either the string name for the style or a Style object.
Type: System.Int16
Required Short. A number that represents the level of the heading.