java.lang.Object
com.aspose.words.PageBorderAppliesTo
public class PageBorderAppliesTo
- extends java.lang.Object
Utility class containing constants.
Specifies which pages the page border is printed on.
Example:
Creates a page border that looks like a wide blue band at the top of the first page only.
Document doc = new Document();
PageSetup ps = doc.getSections().get(0).getPageSetup();
ps.setBorderAlwaysInFront(false);
ps.setBorderDistanceFrom(PageBorderDistanceFrom.PAGE_EDGE);
ps.setBorderAppliesTo(PageBorderAppliesTo.FIRST_PAGE);
Border border = ps.getBorders().getByBorderType(BorderType.TOP);
border.setLineStyle(LineStyle.SINGLE);
border.setLineWidth(30);
border.setColor(Color.BLUE);
border.setDistanceFromText(0);
doc.save(getMyDir() + "PageSetup.PageBorderTop Out.doc");
- See Also:
- PageSetup, PageSetup.BorderAppliesTo
Field Summary |
static final int | ALL_PAGES = 0 | |
Page border is shown on all pages of the section.
|
static final int | FIRST_PAGE = 1 | |
Page border is shown on the first page of the section only.
|
static final int | OTHER_PAGES = 2 | |
Page border is shown on all pages except the first page of the section.
|
ALL_PAGES = 0 | |
public static final int ALL_PAGES |
-
Page border is shown on all pages of the section.
FIRST_PAGE = 1 | |
public static final int FIRST_PAGE |
-
Page border is shown on the first page of the section only.
OTHER_PAGES = 2 | |
public static final int OTHER_PAGES |
-
Page border is shown on all pages except the first page of the section.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.