|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelPageSetup
This class stores page setup settings like print area, the rows to be repeated at top, columns to be repeated at left, page orientation (portrait, landscape), paper size, scaling factor, fit to pages width/height, paper margins, print order, horizontal and vertical page breaks and other customizations like: print gridlines, print black and white, print draft quality, print row and column headings, print comments.
Constructor Summary | |
ExcelPageSetup(ExcelWorksheet xlsTab)
Internal use only Defines an instance of page setup. |
Method Summary | |
bool |
CenterHorizontally()
Returns the center horizontally option for the page. |
bool |
CenterVertically()
Returns the center vertically option for the page. |
System.String |
esd_getColumnsToRepeatAtLeft()
Returns the columns to repeat at left. |
System.String |
esd_getPrintArea()
Returns the print area. |
System.String |
esd_getRowsToRepeatAtTop()
Returns the rows to repeat at top. |
void |
esd_removePrintArea()
Removes the print area. |
void |
esd_setColumnsToRepeatAtLeft(int startColumn,
int endColumn)
Sets the columns to repeat at left. |
void |
esd_setColumnsToRepeatAtLeft(int startColumn,
int endColumn,
bool isR1C1ReferenceStyle)
Sets the columns to repeat at left. |
void |
esd_setColumnsToRepeatAtLeft(System.String columnRange)
Sets the columns to repeat at left. |
void |
esd_setPrintArea(int startRow,
int startColumn,
int endRow,
int endColumn)
Sets the print area. |
void |
esd_setPrintArea(int startRow,
int startColumn,
int endRow,
int endColumn,
bool isR1C1ReferenceStyle)
Sets the print area. |
void |
esd_setPrintArea(System.String range)
Sets the print area. |
void |
esd_setRowsToRepeatAtTop(int startRow,
int endRow)
Sets the rows to repeat at top. |
void |
esd_setRowsToRepeatAtTop(int startRow,
int endRow,
bool isR1C1ReferenceStyle)
Sets the rows to repeat at top. |
void |
esd_setRowsToRepeatAtTop(System.String rowRange)
Sets the rows to repeat at top. |
double |
getBottomMargin()
Returns the bottom margin of the paper. |
int |
getFirstPageNumber()
Returns the starting page number. |
int |
getFitToPagesHeight()
Returns the number of pages to fit in the page height. |
int |
getFitToPagesWidth()
Returns the number of pages to fit in the page width. |
double |
getFooterMargin()
Returns the footer margin of the paper. |
double |
getHeaderMargin()
Returns the header margin of the paper. |
double |
getLeftMargin()
Returns the left margin of the paper. |
System.String |
getOrientation()
Returns the page orientation. |
int |
getPageOrder()
Returns the print page order. |
int |
getPaperSize()
Returns the paper size. |
System.String |
getPrintArea()
Internal use only |
int |
getPrintComments()
Returns the print comments option for the page. |
double |
getRightMargin()
Returns the right margin of the paper. |
int |
getScalingFactor()
Returns the scaling factor. |
double |
getTopMargin()
Returns the top margin of the paper. |
bool |
PrintBlackAndWhite()
Returns the print black and white option for the page. |
bool |
PrintDraftQuality()
Returns the print draft quality option for the page. |
bool |
PrintGridlines()
Returns the print gridlines option for the page. |
bool |
PrintRowAndColumnHeadings()
Returns the print row and column headings option for the page. |
void |
setBottomMargin(double bottomMargin)
Sets the bottom margin of the paper. |
void |
setCenterHorizontally(bool isCenterHorizontally)
Sets the center horizontally option for the page. |
void |
setCenterVertically(bool isCenterVertically)
Sets the center vertically option for the page. |
void |
setFirstPageNumber(int firstPageNumber)
Sets the starting page number. |
void |
setFitToPagesHeight(int value)
Sets the number of pages to fit in the page height. |
void |
setFitToPagesWidth(int value)
Sets the number of pages to fit in the page width. |
void |
setFooterMargin(double footerMargin)
Sets the footer margin of the paper. |
void |
setHeaderMargin(double headerMargin)
Sets the header margin of the paper. |
void |
setLeftMargin(double leftMargin)
Sets the left margin of the paper. |
void |
setOrientation(System.String orientation)
Sets the page orientation. |
void |
setPageOrder(int pageOrder)
Sets the print page order. |
void |
setPaperSize(int paperSize)
Sets the paper size. |
void |
setPrintBlackAndWhite(bool printBlackAndWhite)
Sets the print black and white option for the page. |
void |
setPrintComments(int position)
Sets the print comments option for the page. |
void |
setPrintDraftQuality(bool printDraftQuality)
Sets the print draft quality option for the page. |
void |
setPrintGridlines(bool printGridlines)
Sets the print gridlines option for the page. |
void |
setPrintRowAndColumnHeadings(bool printRowAndColumnHeadings)
Sets the print row and column headings option for the page. |
void |
setRightMargin(double rightMargin)
Sets the right margin of the paper. |
void |
setScalingFactor(int scalingFactor)
Sets the scaling factor. |
void |
setTopMargin(double topMargin)
Sets the top margin of the paper. |
Constructor Detail |
public ExcelPageSetup(ExcelWorksheet xlsTab)
xlsTab
- - the worksheet that has these settings.Method Detail |
public void esd_setPrintArea(int startRow, int startColumn, int endRow, int endColumn, bool isR1C1ReferenceStyle)
startRow
- the start row of the range that defines the print areastartColumn
- the start column of the range that defines the print areaendRow
- the end row of the range that defines the print areaendColumn
- the end column of the range that defines the print areaisR1C1ReferenceStyle
- the R1C1 reference style of the documentesd_setPrintArea(String)
,
esd_getPrintArea()
,
esd_removePrintArea()
public void esd_setPrintArea(int startRow, int startColumn, int endRow, int endColumn)
startRow
- the start row of the range that defines the print areastartColumn
- the start column of the range that defines the print areaendRow
- the end row of the range that defines the print areaendColumn
- the end column of the range that defines the print areaesd_setPrintArea(String)
,
esd_getPrintArea()
,
esd_removePrintArea()
public void esd_setPrintArea(System.String range)
range
- the print area. It can be a cell reference or a range.esd_setPrintArea(int,int,int,int)
,
esd_getPrintArea()
,
esd_removePrintArea()
public System.String esd_getPrintArea()
esd_setPrintArea(int,int,int,int)
,
esd_setPrintArea(String)
,
esd_removePrintArea()
public System.String getPrintArea()
public void esd_removePrintArea()
esd_setPrintArea(int,int,int,int)
,
esd_setPrintArea(String)
,
esd_getPrintArea()
public void esd_setRowsToRepeatAtTop(int startRow, int endRow, bool isR1C1ReferenceStyle)
startRow
- - first row index of the row rangeendRow
- - last row index of the row rangeisR1C1ReferenceStyle
- the R1C1 reference style of the documentesd_getRowsToRepeatAtTop()
,
esd_setColumnsToRepeatAtLeft(int, int, bool)
,
esd_getColumnsToRepeatAtLeft()
public void esd_setRowsToRepeatAtTop(int startRow, int endRow)
startRow
- - first row index of the row rangeendRow
- - last row index of the row rangeesd_getRowsToRepeatAtTop()
,
esd_setColumnsToRepeatAtLeft(int, int, bool)
,
esd_getColumnsToRepeatAtLeft()
public void esd_setRowsToRepeatAtTop(System.String rowRange)
rowRange
- - a row range that defines the rows to repeat at top (like "$1:$2")esd_getRowsToRepeatAtTop()
,
esd_setColumnsToRepeatAtLeft(int, int, bool)
,
esd_getColumnsToRepeatAtLeft()
public System.String esd_getRowsToRepeatAtTop()
esd_setRowsToRepeatAtTop(int, int, bool)
,
esd_setColumnsToRepeatAtLeft(int, int, bool)
,
esd_getColumnsToRepeatAtLeft()
public System.String esd_getColumnsToRepeatAtLeft()
esd_setColumnsToRepeatAtLeft(int, int, bool)
,
esd_setRowsToRepeatAtTop(int, int, bool)
,
esd_getRowsToRepeatAtTop()
public void esd_setColumnsToRepeatAtLeft(int startColumn, int endColumn, bool isR1C1ReferenceStyle)
startColumn
- - first column index of the column rangeendColumn
- - last column index of the column rangeisR1C1ReferenceStyle
- the R1C1 reference style of the documentesd_getColumnsToRepeatAtLeft()
,
esd_setRowsToRepeatAtTop(int, int, bool)
,
esd_getRowsToRepeatAtTop()
public void esd_setColumnsToRepeatAtLeft(int startColumn, int endColumn)
startColumn
- - first column index of the column rangeendColumn
- - last column index of the column rangeesd_getColumnsToRepeatAtLeft()
,
esd_setRowsToRepeatAtTop(int, int, bool)
,
esd_getRowsToRepeatAtTop()
public void esd_setColumnsToRepeatAtLeft(System.String columnRange)
columnRange
- - a column range that defines the columns to repeat at left (like "$A:$B")esd_getColumnsToRepeatAtLeft()
,
esd_setRowsToRepeatAtTop(int, int, bool)
,
esd_getRowsToRepeatAtTop()
public System.String getOrientation()
PageSetup
class.
setOrientation(System.String)
public void setOrientation(System.String orientation)
PageSetup
class.
orientation
- the page orientationgetOrientation()
public int getPaperSize()
PageSetup
class.
setPaperSize(int)
public void setPaperSize(int paperSize)
PageSetup
class.
paperSize
- the paper sizegetPaperSize()
public int getScalingFactor()
setScalingFactor(int)
public void setScalingFactor(int scalingFactor)
scalingFactor
- the scaling factorgetScalingFactor()
public int getFitToPagesWidth()
setFitToPagesWidth(int)
,
getFitToPagesHeight()
,
setFitToPagesHeight(int)
public void setFitToPagesWidth(int value)
value
- the number of pages to fit in the page widthgetFitToPagesWidth()
,
getFitToPagesHeight()
,
setFitToPagesHeight(int)
public int getFitToPagesHeight()
setFitToPagesHeight(int)
,
getFitToPagesWidth()
,
setFitToPagesWidth(int)
public void setFitToPagesHeight(int value)
value
- the number of pages to fit in the page heightgetFitToPagesHeight()
,
getFitToPagesWidth()
,
setFitToPagesWidth(int)
public int getFirstPageNumber()
setFirstPageNumber(int)
public void setFirstPageNumber(int firstPageNumber)
firstPageNumber
- the starting page numbergetFirstPageNumber()
public double getTopMargin()
setTopMargin(double)
,
getBottomMargin()
,
getLeftMargin()
,
getRightMargin()
public void setTopMargin(double topMargin)
topMargin
- the top margin of the papergetTopMargin()
,
setBottomMargin(double)
,
setLeftMargin(double)
,
setRightMargin(double)
public double getBottomMargin()
setBottomMargin(double)
,
getTopMargin()
,
getLeftMargin()
,
getRightMargin()
public void setBottomMargin(double bottomMargin)
bottomMargin
- the bottom margin of the papergetBottomMargin()
,
setTopMargin(double)
,
setLeftMargin(double)
,
setRightMargin(double)
public double getLeftMargin()
setLeftMargin(double)
,
getTopMargin()
,
getBottomMargin()
,
getRightMargin()
public void setLeftMargin(double leftMargin)
leftMargin
- the left margin of the papergetLeftMargin()
,
setTopMargin(double)
,
setBottomMargin(double)
,
setRightMargin(double)
public double getRightMargin()
setRightMargin(double)
,
getTopMargin()
,
getBottomMargin()
,
getLeftMargin()
public void setRightMargin(double rightMargin)
rightMargin
- the right margin of the papergetRightMargin()
,
setTopMargin(double)
,
setBottomMargin(double)
,
setLeftMargin(double)
public double getHeaderMargin()
setHeaderMargin(double)
,
getFooterMargin()
public void setHeaderMargin(double headerMargin)
headerMargin
- the header margin of the papergetHeaderMargin()
,
setFooterMargin(double)
public double getFooterMargin()
setFooterMargin(double)
,
getHeaderMargin()
public void setFooterMargin(double footerMargin)
footerMargin
- the footer margin of the papergetFooterMargin()
,
setHeaderMargin(double)
public bool CenterHorizontally()
setCenterHorizontally(bool)
,
CenterVertically()
,
setCenterVertically(bool)
public void setCenterHorizontally(bool isCenterHorizontally)
isCenterHorizontally
- the center horizontally option for the pageCenterHorizontally()
,
CenterVertically()
,
setCenterVertically(bool)
public bool CenterVertically()
setCenterVertically(bool)
,
CenterHorizontally()
,
setCenterHorizontally(bool)
public void setCenterVertically(bool isCenterVertically)
isCenterVertically
- the center vertically option for the pageCenterVertically()
,
CenterHorizontally()
,
setCenterHorizontally(bool)
public bool PrintGridlines()
setPrintGridlines(bool)
public void setPrintGridlines(bool printGridlines)
printGridlines
- the print gridlines option for the pagePrintGridlines()
public bool PrintBlackAndWhite()
setPrintBlackAndWhite(bool)
public void setPrintBlackAndWhite(bool printBlackAndWhite)
printBlackAndWhite
- the print black and white option for the pagePrintBlackAndWhite()
public bool PrintDraftQuality()
setPrintDraftQuality(bool)
public void setPrintDraftQuality(bool printDraftQuality)
printDraftQuality
- the print draft quality option for the pagePrintDraftQuality()
public bool PrintRowAndColumnHeadings()
setPrintRowAndColumnHeadings(bool)
public void setPrintRowAndColumnHeadings(bool printRowAndColumnHeadings)
printRowAndColumnHeadings
- the print row and column headings option for the pagePrintRowAndColumnHeadings()
public int getPrintComments()
PageSetup
class.
setPrintComments(int)
public void setPrintComments(int position)
PageSetup
class.
position
- the print comments option for the pagegetPrintComments()
public int getPageOrder()
PageSetup
class.
setPageOrder(int)
public void setPageOrder(int pageOrder)
PageSetup
class.
pageOrder
- the print page ordergetPageOrder()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |