ChapterPageSeparator

ChapterPageSeparator enumeration

Defines the separator character that appears between the chapter and page number.

public enum ChapterPageSeparator

Values

NameValueDescription
Hyphen0A colon.
Period1A period.
Colon2A colon.
EmDash3An emphasized dash.
EnDash4A standard dash.

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