public class WordProcessingPageSetup extends Object
Represents printing page properties for a section of a Word document.
Modifier and Type | Method and Description |
---|---|
double |
getBottomMargin()
Gets the size of the bottom margin in points.
|
boolean |
getDifferentFirstPageHeaderFooter()
Gets a value indicating whether a different header/footer is used for the first page.
|
double |
getHeight()
Gets the height of a printing page in points.
|
double |
getLeftMargin()
Gets the size of the left margin in points.
|
boolean |
getOddAndEvenPagesHeaderFooter()
Gets a value indicating whether different headers/footers are used for odd-numbered and even-numbered
pages.
|
double |
getRightMargin()
Gets the size of the right margin in points.
|
double |
getTopMargin()
Gets the size of the top margin in points.
|
double |
getWidth()
Gets the width of a printing page in points.
|
void |
setDifferentFirstPageHeaderFooter(boolean value)
Sets a value indicating whether a different header/footer is used for the first page.
|
void |
setOddAndEvenPagesHeaderFooter(boolean value)
Sets a value indicating whether different headers/footers are used for odd-numbered and even-numbered
pages.
|
public final double getWidth()
Gets the width of a printing page in points.
public final double getHeight()
Gets the height of a printing page in points.
public final double getLeftMargin()
Gets the size of the left margin in points.
public final double getTopMargin()
Gets the size of the top margin in points.
public final double getRightMargin()
Gets the size of the right margin in points.
public final double getBottomMargin()
Gets the size of the bottom margin in points.
public final boolean getDifferentFirstPageHeaderFooter()
Gets a value indicating whether a different header/footer is used for the first page.
public final void setDifferentFirstPageHeaderFooter(boolean value)
Sets a value indicating whether a different header/footer is used for the first page.
value
- True if a different header/footer is used for the first page; otherwise, false.public final boolean getOddAndEvenPagesHeaderFooter()
Gets a value indicating whether different headers/footers are used for odd-numbered and even-numbered pages. Note, changing this property affects all sections in the content.
public final void setOddAndEvenPagesHeaderFooter(boolean value)
Sets a value indicating whether different headers/footers are used for odd-numbered and even-numbered pages. Note, changing this property affects all sections in the content.
value
- True if different headers/footers are used for odd-numbered and even-numbered pages; otherwise, false.