Partager via


PageNumbers.ChapterPageSeparator Property

Returns or sets the separator character used between the chapter number and the page number. Can be one of the WdSeparatorType constants.

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

Syntax

'Declaration
Property ChapterPageSeparator As WdSeparatorType
    Get
    Set
'Usage
Dim instance As PageNumbers
Dim value As WdSeparatorType

value = instance.ChapterPageSeparator

instance.ChapterPageSeparator = value
WdSeparatorType ChapterPageSeparator { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdSeparatorType

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.

See Also

Reference

PageNumbers Interface

PageNumbers Members

Microsoft.Office.Interop.Word Namespace