|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.PageSetup
public class PageSetup
Method Summary | |
---|---|
boolean |
getBidi()
Gets whether section contains right-to-left text. |
Borders |
getBorders()
Gets page borders collection |
CharacterSpacing |
getCharacterSpacingControl()
gets Character Spacing Control. |
float |
getClientHeight()
Gets width of client area. |
float |
getClientWidth()
Gets width of client area. |
float |
getDefaultTabWidth()
Gets the length of the auto tab. |
boolean |
getDifferentFirstPageHeaderFooter()
|
boolean |
getDifferentOddAndEvenPagesHeaderFooter()
Setting to specify that the current section has a different header/footer for first page. |
boolean |
getEqualColumnWidth()
Gets a value indicating whether equal column width. |
float |
getFooterDistance()
Gets footer height in points. |
float |
getGutter()
Gets or sets extra space added to the margin for document binding in points. |
float |
getHeaderDistance()
Gets height of header in points. |
float |
getLineNumberingDistanceFromText()
Gets distance from text in lines numbering |
LineNumberingRestartMode |
getLineNumberingRestartMode()
return line numbering mode |
int |
getLineNumberingStartValue()
Gets line numbering start value |
int |
getLineNumberingStep()
Gets line numbering step |
MarginsF |
getMargins()
Gets page margins in points. |
PageOrientation |
getOrientation()
Gets orientation of a page. |
boolean |
getPageBorderIncludeFooter()
Gets a value indicating whether the page border include the footer. |
boolean |
getPageBorderIncludeHeader()
Gets a value indicating whether the page border include the header. |
PageBorderOffsetFrom |
getPageBorderOffsetFrom()
Gets the position of page border |
PageBordersApplyType |
getPageBordersApplyType()
Gets the value that determine on which pages border is applied |
PageNumberStyle |
getPageNumberStyle()
Gets the page number style. |
java.awt.geom.Dimension2D |
getPageSize()
Gets page size in points. |
int |
getPageStartingNumber()
Gets the page starting number. |
boolean |
getRestartPageNumbering()
Gets a value indicating whether to restart page numbering. |
PageAlignment |
getVerticalAlignment()
Gets vertical alignment. |
void |
insertPageNumbers(boolean fromTopPage,
PageNumberAlignment horizontalAlignment)
Inserts the page numbers. |
boolean |
isFrontPageBorder()
Gets a value indicating whether this instance is front page border. |
void |
isFrontPageBorder(boolean value)
Sets a value indicating whether this instance is front page border. |
void |
setBidi(boolean value)
Sets whether section contains right-to-left text. |
void |
setCharacterSpacingControl(CharacterSpacing value)
Sets Character Spacing Control. |
void |
setColumnsLineBetween(boolean value)
Sets the value specifies if a vertical line is draw between each of the text columns in the this section. |
void |
setDefaultTabWidth(float value)
Sets the length of the auto tab. |
void |
setDifferentFirstPageHeaderFooter(boolean value)
Setting to specify that the current section has a different header/footer for first page. |
void |
setDifferentOddAndEvenPagesHeaderFooter(boolean value)
True if the document has different headers and footers for odd-numbered and even-numbered pages. |
void |
setEqualColumnWidth(boolean value)
Sets a value indicating whether equal column width. |
void |
setFooterDistance(float value)
Sets footer height in points. |
void |
setGutter(float value)
Sets extra space added to the margin for document binding in points. |
void |
setHeaderDistance(float value)
Sets height of header in points. |
void |
setLineNumberingDistanceFromText(float value)
Sets distance from text in lines numbering |
void |
setLineNumberingRestartMode(LineNumberingRestartMode value)
sets line numbering mode |
void |
setLineNumberingStartValue(int value)
sets line numbering start value |
void |
setLineNumberingStep(int value)
Sets line numbering step |
void |
setMargins(MarginsF value)
Sets page margins in points. |
void |
setOrientation(PageOrientation value)
sets orientation of a page. |
void |
setPageBorderIncludeFooter(boolean value)
Sets a value indicating whether the page border include the footer. |
void |
setPageBorderIncludeHeader(boolean value)
Sets a value indicating whether the page border include the header. |
void |
setPageBorderOffsetFrom(PageBorderOffsetFrom value)
Sets the position of page border |
void |
setPageBordersApplyType(PageBordersApplyType value)
Sets the value that determine on which pages border is applied |
void |
setPageNumberStyle(PageNumberStyle value)
Sets the page number style. |
void |
setPageSize(java.awt.geom.Dimension2D value)
Sets page size in points. |
void |
setPageStartingNumber(int value)
Sets the page starting number. |
void |
setRestartPageNumbering(boolean value)
Sets a value indicating whether to restart page numbering. |
void |
setVerticalAlignment(PageAlignment value)
Sets vertical alignment. |
java.lang.String |
toString()
|
Methods inherited from class com.spire.doc.OwnerHolder |
---|
getDocument |
Method Detail |
---|
public float getGutter()
public void setGutter(float value)
value
- The gutter size.public float getDefaultTabWidth()
public void setDefaultTabWidth(float value)
value
- The length of the auto tab.public java.awt.geom.Dimension2D getPageSize()
public void setPageSize(java.awt.geom.Dimension2D value)
value
- SizeFpublic PageOrientation getOrientation()
public void setOrientation(PageOrientation value)
value
- PageOrientationpublic PageAlignment getVerticalAlignment()
public void setVerticalAlignment(PageAlignment value)
value
- PageAlignmentpublic MarginsF getMargins()
public void setMargins(MarginsF value)
value
- MarginsFpublic float getHeaderDistance()
public void setHeaderDistance(float value)
value
- floatpublic float getFooterDistance()
public void setFooterDistance(float value)
value
- floatpublic float getClientWidth()
public float getClientHeight()
public boolean getDifferentFirstPageHeaderFooter()
public void setDifferentFirstPageHeaderFooter(boolean value)
value
- a boolean valuepublic boolean getDifferentOddAndEvenPagesHeaderFooter()
public void setDifferentOddAndEvenPagesHeaderFooter(boolean value)
value
- booleanpublic LineNumberingRestartMode getLineNumberingRestartMode()
public void setLineNumberingRestartMode(LineNumberingRestartMode value)
value
- a line numbering modepublic int getLineNumberingStep()
public void setLineNumberingStep(int value)
value
- line numbering steppublic int getLineNumberingStartValue()
public void setLineNumberingStartValue(int value)
value
- line numbering start valuepublic float getLineNumberingDistanceFromText()
public void setLineNumberingDistanceFromText(float value)
value
- distance from text in lines numberingpublic PageBordersApplyType getPageBordersApplyType()
public void setPageBordersApplyType(PageBordersApplyType value)
value
- the PageBordersApplyTypepublic PageBorderOffsetFrom getPageBorderOffsetFrom()
public void setPageBorderOffsetFrom(PageBorderOffsetFrom value)
value
- PageBorderOffsetFrompublic boolean isFrontPageBorder()
public void isFrontPageBorder(boolean value)
value
- a boolean valuepublic boolean getPageBorderIncludeHeader()
public void setPageBorderIncludeHeader(boolean value)
value
- a boolean valuepublic boolean getPageBorderIncludeFooter()
public void setPageBorderIncludeFooter(boolean value)
value
- a boolean valuepublic Borders getBorders()
public boolean getBidi()
public void setBidi(boolean value)
value
- booleanpublic boolean getEqualColumnWidth()
public void setEqualColumnWidth(boolean value)
value
- true if equal column width; otherwise, falsepublic PageNumberStyle getPageNumberStyle()
public void setPageNumberStyle(PageNumberStyle value)
value
- The page number style.public int getPageStartingNumber()
public void setPageStartingNumber(int value)
value
- The page starting number.public boolean getRestartPageNumbering()
public void setRestartPageNumbering(boolean value)
value
- if restart page numbering, set to truepublic void setColumnsLineBetween(boolean value)
value
- booleanpublic CharacterSpacing getCharacterSpacingControl()
public void setCharacterSpacingControl(CharacterSpacing value)
value
- CharacterSpacingpublic void insertPageNumbers(boolean fromTopPage, PageNumberAlignment horizontalAlignment)
fromTopPage
- if it specifies the top of page, set to truehorizontalAlignment
- The horizontal alignment.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |