ChapterPageSeparator

PageSetup.ChapterPageSeparator property

Gets or sets the separator character that appears between the chapter number and the page number.

public ChapterPageSeparator ChapterPageSeparator { get; set; }

Remarks

Before you can create page numbers that include chapter numbers, the document headings must have a numbered outline format applied.

Examples

Shows how to work with page chapters.

Document doc = new Document(MyDir + "Big document.docx");

PageSetup pageSetup = doc.FirstSection.PageSetup;

pageSetup.PageNumberStyle = NumberStyle.UppercaseRoman;
pageSetup.ChapterPageSeparator = Aspose.Words.ChapterPageSeparator.Colon;
pageSetup.HeadingLevelForChapter = 1;

See Also