ChapterPageSeparator
Contents
[
Hide
]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
Field | Description |
---|---|
COLON | A colon. |
EM_DASH | An emphasized dash. |
EN_DASH | A standard dash. |
HYPHEN | A colon. |
PERIOD | A period. |
length |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
chapterPageSeparatorName | java.lang.String |
Returns: int
getName(int chapterPageSeparator)
public static String getName(int chapterPageSeparator)
Parameters:
Parameter | Type | Description |
---|---|---|
chapterPageSeparator | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int chapterPageSeparator)
public static String toString(int chapterPageSeparator)
Parameters:
Parameter | Type | Description |
---|---|---|
chapterPageSeparator | int |
Returns: java.lang.String