WordProcessingPageSetup
Inheritance: java.lang.Object
public class WordProcessingPageSetup
Represents printing page properties for a section of a Word document.
Methods
Method | Description |
---|---|
getWidth() | Gets the width of a printing page in points. |
getHeight() | Gets the height of a printing page in points. |
getLeftMargin() | Gets the size of the left margin in points. |
getTopMargin() | Gets the size of the top margin in points. |
getRightMargin() | Gets the size of the right margin in points. |
getBottomMargin() | Gets the size of the bottom margin in points. |
getDifferentFirstPageHeaderFooter() | Gets a value indicating whether a different header/footer is used for the first page. |
setDifferentFirstPageHeaderFooter(boolean value) | Sets a value indicating whether a different header/footer is used for the first page. |
getOddAndEvenPagesHeaderFooter() | Gets a value indicating whether different headers/footers are used for odd-numbered and even-numbered pages. |
setOddAndEvenPagesHeaderFooter(boolean value) | Sets a value indicating whether different headers/footers are used for odd-numbered and even-numbered pages. |
getWidth()
public final double getWidth()
Gets the width of a printing page in points.
Returns: double - The width of a printing page in points.
getHeight()
public final double getHeight()
Gets the height of a printing page in points.
Returns: double - The height of a printing page in points.
getLeftMargin()
public final double getLeftMargin()
Gets the size of the left margin in points.
Returns: double - The size of the left margin in points.
getTopMargin()
public final double getTopMargin()
Gets the size of the top margin in points.
Returns: double - The size of the top margin in points.
getRightMargin()
public final double getRightMargin()
Gets the size of the right margin in points.
Returns: double - The size of the right margin in points.
getBottomMargin()
public final double getBottomMargin()
Gets the size of the bottom margin in points.
Returns: double - The size of the bottom margin in points.
getDifferentFirstPageHeaderFooter()
public final boolean getDifferentFirstPageHeaderFooter()
Gets a value indicating whether a different header/footer is used for the first page.
Returns: boolean - True if a different header/footer is used for the first page; otherwise, false.
setDifferentFirstPageHeaderFooter(boolean value)
public final void setDifferentFirstPageHeaderFooter(boolean value)
Sets a value indicating whether a different header/footer is used for the first page.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | True if a different header/footer is used for the first page; otherwise, false. |
getOddAndEvenPagesHeaderFooter()
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.
Returns: boolean - True if different headers/footers are used for odd-numbered and even-numbered pages; otherwise, false.
setOddAndEvenPagesHeaderFooter(boolean value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | True if different headers/footers are used for odd-numbered and even-numbered pages; otherwise, false. |