PageNumbers.HeadingLevelForChapter Property
Returns or sets the heading level style that's applied to the chapter titles in the document. Can be a number from 0 (zero) through 8, corresponding to heading levels 1 through 9.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property HeadingLevelForChapter As Integer
Get
Set
'Usage
Dim instance As PageNumbers
Dim value As Integer
value = instance.HeadingLevelForChapter
instance.HeadingLevelForChapter = value
int HeadingLevelForChapter { get; set; }
Property Value
Type: System.Int32
Remarks
Before you can create page numbers that include chapter numbers, the document headings must have a numbered outline format applied that uses styles from the Bullets and Numbering dialog box. To do this programmatically, use the ApplyListTemplate method of the List or ListFormat object.