ChapterPageSeparator

Inheritance: java.lang.Object

public class ChapterPageSeparator

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

Examples:

Shows how to work with page chapters.


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

 PageSetup pageSetup = doc.getFirstSection().getPageSetup();

 pageSetup.setPageNumberStyle(NumberStyle.UPPERCASE_ROMAN);
 pageSetup.setChapterPageSeparator(com.aspose.words.ChapterPageSeparator.COLON);
 pageSetup.setHeadingLevelForChapter(1);
 

Fields

FieldDescription
COLONA colon.
EM_DASHAn emphasized dash.
EN_DASHA standard dash.
HYPHENA colon.
PERIODA period.
length

Methods

MethodDescription
fromName(String chapterPageSeparatorName)
getName(int chapterPageSeparator)
getValues()
toString(int chapterPageSeparator)

COLON

public static int COLON

A colon.

EM_DASH

public static int EM_DASH

An emphasized dash.

EN_DASH

public static int EN_DASH

A standard dash.

HYPHEN

public static int HYPHEN

A colon.

PERIOD

public static int PERIOD

A period.

length

public static int length

fromName(String chapterPageSeparatorName)

public static int fromName(String chapterPageSeparatorName)

Parameters:

ParameterTypeDescription
chapterPageSeparatorNamejava.lang.String

Returns: int

getName(int chapterPageSeparator)

public static String getName(int chapterPageSeparator)

Parameters:

ParameterTypeDescription
chapterPageSeparatorint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int chapterPageSeparator)

public static String toString(int chapterPageSeparator)

Parameters:

ParameterTypeDescription
chapterPageSeparatorint

Returns: java.lang.String