|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelTable
This class simulates a worksheet table. It is assigned to an ExcelWorksheet class. It allows to access the spreadsheet cells, to add rows and columns, to set default row height and column width, to add horizontal and vertical page breaks for page break preview.
Constructor Summary | |
ExcelTable()
Defines an instance of the worksheet table. |
Method Summary | |
ExcelTable |
Clone()
Creates and returns a copy of this object. |
int |
ColumnCount()
Returns the number of columns from the table. |
void |
Dispose()
Dispose any resources that it has allocated. |
void |
esd_addColumn()
Adds a column to table. |
void |
esd_addColumn(ExcelColumn columnData)
Adds the specified column to table. |
void |
esd_addRow()
Adds a row to table. |
void |
esd_addRow(ExcelRow rowData)
Adds the specified row to table. |
void |
esd_freezePanes(int splitRow,
int splitColumn)
Sets the freeze panes for the table. |
void |
esd_freezePanes(int splitRow,
int splitColumn,
int topVisibleRow_BottomPane,
int leftVisibleColumn_RightPane)
Set the freeze panes for the table. |
ExcelCell |
esd_getCell(int row,
int column)
If a cell does not exist at the specified position, it creates one, and returns the cell. |
ExcelCell |
esd_getCell(System.String cellReference)
Returns the cell at the specified reference. |
ExcelCell |
esd_getCellAt(int row,
int column)
Returns the cell at the specified row and column. |
int |
esd_getCellMergingFirstCol(int nIndex)
Returns the first column of the specified cell merging range. |
int |
esd_getCellMergingFirstRow(int nIndex)
Returns the first row of the specified cell merging range. |
int |
esd_getCellMergingLastCol(int nIndex)
Returns the last column of the specified cell merging range. |
int |
esd_getCellMergingLastRow(int nIndex)
Returns the last row of the specified cell merging range. |
ExcelColumn |
esd_getColumnAt(int column)
Returns the column at the specified position. |
System.String |
esd_getMergingRangeAsA1Reference(int nIndex)
Internal use only Returns the cell merging range at the specified range as A1 reference (e.g. |
ExcelRow |
esd_getRowAt(int row)
Returns the row at specified position. |
void |
esd_insertColumn(int column,
ExcelColumn columnData)
Inserts the specified column to table into the specified position. |
void |
esd_insertPageBreakAtColumn(int column)
Inserts a page break after the specified column. |
void |
esd_insertPageBreakAtRow(int row)
Inserts a page break after the specified row. |
void |
esd_insertRow(int row,
ExcelRow rowData)
Inserts the specified row to table into the specified position. |
void |
esd_mergeCells(int startRow,
int startColumn,
int endRow,
int endColumn)
|
void |
esd_mergeCells(System.String range)
Merging the cells inside the specified range. |
void |
esd_mergeCells(System.String startCellReference,
System.String endCellReference)
Merging the cells inside the range limited by the specified cell references. |
void |
esd_removeCellMerging(int nIndex)
Removes the cell merging area at the specified index from the table |
void |
esd_removeColumn(int column)
Removes the column at the specified index from the table |
void |
esd_removeRow(int row)
Removes the row at the specified index from the table |
void |
esd_removeSplit()
Removes the split option for the table. |
void |
esd_resetAllPageBreaks()
Resets all the defined page breaks. |
void |
esd_setCellAt(ExcelCell cell,
int row,
int column)
Sets the cell at the specified position. |
void |
esd_setRangeAutoFormat(int startRow,
int startColumn,
int endRow,
int endColumn,
ExcelAutoFormat xlsAutoFormat)
Sets the specified autoformat for the range. |
void |
esd_setRangeAutoFormat(System.String range,
ExcelAutoFormat xlsAutoFormat)
Sets the specified autoformat for the range. |
void |
esd_setRangeAutoFormat(System.String startCellReference,
System.String endCellReference,
ExcelAutoFormat xlsAutoFormat)
Sets the specified autoformat for the range limited by the specified cell references. |
void |
esd_setRangeStyle(int startRow,
int startColumn,
int endRow,
int endColumn,
ExcelStyle style)
Sets the specified style for the range limited by the rows and columns. |
void |
esd_setRangeStyle(System.String range,
ExcelStyle style)
Sets the specified style for the range. |
void |
esd_setRangeStyle(System.String startCellReference,
System.String endCellReference,
ExcelStyle style)
Sets the specified style for the range limited by the specified cell references. |
void |
esd_split(int splitRow,
int splitColumn)
Sets the split option for the table. |
void |
esd_split(int splitRow,
int splitColumn,
int topVisibleRow_BottomPane,
int leftVisibleColumn_RightPane)
Set the split option for the table. |
void |
esd_unfreezePanes()
Unfreezes panes for the table. |
int |
getColumnWidth()
Returns the default width of the columns. |
int |
getColumnWidth(int column)
Returns the width of the specified column. |
List |
getHorizontalPageBreaks()
Returns a list with all horizontal page breaks |
int |
getRowHeight()
Returns the default height of the rows. |
int |
getRowHeight(int row)
Returns the height of the specified row. |
List |
getVerticalPageBreaks()
Returns a list with all vertical page breaks |
bool |
IsFreezePaneSet()
Returns true if the row/columns are frozen, false otherwise. |
bool |
IsRowHeightSet()
Returns true if the default row height was set, false otherwise. |
bool |
IsSplitSet()
Returns true if the row/columns are split, false otherwise. |
int |
MergeCellRangesCount()
Returns the count of the cell merging ranges. |
int |
RowCount()
Returns the number of rows from the table. |
void |
setColumnCount(int count)
Sets the number of columns for the table. |
void |
setColumnWidth(int width)
Sets the default width of the columns. |
void |
setColumnWidth(int column,
int columnWidth)
Sets the width for the specified column. |
void |
setFreezePaneSet(bool bValue)
Internal use only |
void |
setRowCount(int count)
Sets the number of rows for the table. |
void |
setRowHeight(int height)
Sets the default height of the rows. |
void |
setRowHeight(int row,
int rowHeight)
Sets the height for the specified row. |
void |
setRowHeightSet(bool bValue)
Internal use only |
void |
setSplitSet(bool bValue)
Internal use only |
Constructor Detail |
public ExcelTable()
Method Detail |
public int RowCount()
setRowCount(int)
public void setRowCount(int count)
count
- the number of rows from the tableRowCount()
public void esd_addRow()
esd_insertRow(int, ActiveXLS.ExcelRow)
,
esd_removeRow(int)
public void esd_addRow(ExcelRow rowData)
rowData
- the row to be addedesd_insertRow(int, ActiveXLS.ExcelRow)
,
esd_removeRow(int)
public void esd_insertRow(int row, ExcelRow rowData)
row
- the position where the row will be insertedrowData
- the row to be insertedesd_addRow()
,
esd_removeRow(int)
public void esd_removeRow(int row)
row
- the row indexesd_addRow()
,
esd_insertRow(int, ActiveXLS.ExcelRow)
public int getRowHeight()
setRowHeight(int)
,
getRowHeight(int)
,
setRowHeight(int,int)
public void setRowHeight(int height)
height
- the default height of the rowsgetRowHeight()
,
getRowHeight(int)
,
setRowHeight(int,int)
public bool IsRowHeightSet()
setRowHeight(int)
public void setRowHeightSet(bool bValue)
public int getRowHeight(int row)
row
- the index of the row for which to return the height
getRowHeight()
,
setRowHeight(int)
,
setRowHeight(int,int)
public void setRowHeight(int row, int rowHeight)
row
- the index of the rowrowHeight
- the new value of the heightgetRowHeight()
,
setRowHeight(int)
,
getRowHeight(int)
public ExcelRow esd_getRowAt(int row)
row
- the row position
public int ColumnCount()
setColumnCount(int)
public void setColumnCount(int count)
count
- the number of columns for the tableColumnCount()
public void esd_addColumn()
esd_insertColumn(int, ActiveXLS.ExcelColumn)
,
esd_removeColumn(int)
public void esd_addColumn(ExcelColumn columnData)
columnData
- the column to be addedesd_insertColumn(int, ActiveXLS.ExcelColumn)
,
esd_removeColumn(int)
public void esd_insertColumn(int column, ExcelColumn columnData)
column
- the position where the column will be insertedcolumnData
- the column to be insertedesd_addColumn()
,
esd_removeColumn(int)
public void esd_removeColumn(int column)
column
- the column indexesd_addColumn()
,
esd_insertColumn(int, ActiveXLS.ExcelColumn)
public int getColumnWidth()
setColumnWidth(int)
,
getColumnWidth(int)
,
setColumnWidth(int,int)
public void setColumnWidth(int width)
width
- the new default width of the columnsgetColumnWidth()
,
getColumnWidth(int)
,
setColumnWidth(int,int)
public int getColumnWidth(int column)
column
- the column index for witch to return the width
getColumnWidth()
,
setColumnWidth(int)
,
setColumnWidth(int,int)
public void setColumnWidth(int column, int columnWidth)
column
- the column positioncolumnWidth
- the new width of the columngetColumnWidth()
,
setColumnWidth(int)
,
getColumnWidth(int)
public ExcelColumn esd_getColumnAt(int column)
column
- the column position
public ExcelCell esd_getCellAt(int row, int column)
row
- the row that specifies the cell positioncolumn
- the column that specifies the cell position
esd_getCell(int, int)
,
esd_setCellAt(ActiveXLS.ExcelCell, int, int)
public ExcelCell esd_getCell(int row, int column)
row
- the row that specifies the cell positioncolumn
- the column that specifies the cell position
esd_getCellAt(int, int)
,
esd_setCellAt(ActiveXLS.ExcelCell, int, int)
public ExcelCell esd_getCell(System.String cellReference)
cellReference
- the cell reference that specifies the cell position
esd_getCell(int, int)
,
esd_setCellAt(ActiveXLS.ExcelCell, int, int)
public void esd_setCellAt(ExcelCell cell, int row, int column)
cell
- the cell to be setrow
- the row positioncolumn
- the column positionesd_getCellAt(int, int)
,
esd_getCell(int, int)
public void esd_setRangeAutoFormat(int startRow, int startColumn, int endRow, int endColumn, ExcelAutoFormat xlsAutoFormat)
startRow
- the row that limits the left upper corner of the cell rangestartColumn
- the column that limits the left upper corner of the cell rangeendRow
- the row that limits the right down corner of the cell rangeendColumn
- the column that limits the right down corner of the cell rangexlsAutoFormat
- the autoformat to be appliedpublic void esd_setRangeAutoFormat(System.String range, ExcelAutoFormat xlsAutoFormat)
range
- the range where the autoformat will be applied. It can be a cell reference or a range.xlsAutoFormat
- the autoformat to be appliedpublic void esd_setRangeAutoFormat(System.String startCellReference, System.String endCellReference, ExcelAutoFormat xlsAutoFormat)
startCellReference
- the cell reference that limits the left upper corner of the cell rangeendCellReference
- the cell reference that limits the right down corner of the cell rangexlsAutoFormat
- the autoformat to be appliedpublic void esd_setRangeStyle(int startRow, int startColumn, int endRow, int endColumn, ExcelStyle style)
startRow
- the row that limits the left upper corner of the cell rangestartColumn
- the column that limits the left upper corner of the cell rangeendRow
- the row that limits the right down corner of the cell rangeendColumn
- the column that limits the right down corner of the cell rangestyle
- the style for the cellspublic void esd_setRangeStyle(System.String range, ExcelStyle style)
range
- the range where the style will be applied. It can be a cell reference or a range.style
- the style for the cellspublic void esd_setRangeStyle(System.String startCellReference, System.String endCellReference, ExcelStyle style)
startCellReference
- the cell reference that limits the left upper corner of the cell rangeendCellReference
- the cell reference that limits the right down corner of the cell rangestyle
- the style for the cellspublic void esd_mergeCells(int startRow, int startColumn, int endRow, int endColumn)
public void esd_mergeCells(System.String range)
range
- the cell rangeesd_mergeCells(int,int,int,int)
,
esd_mergeCells(String,String)
public void esd_mergeCells(System.String startCellReference, System.String endCellReference)
startCellReference
- the cell reference that limits the left upper corner of the cell rangeendCellReference
- the cell reference that limits the right down corner of the cell rangeesd_mergeCells(int,int,int,int)
,
esd_mergeCells(String)
public System.String esd_getMergingRangeAsA1Reference(int nIndex)
nIndex
- the merge cells range index
public int esd_getCellMergingFirstRow(int nIndex)
nIndex
- the merge cells range index
esd_getCellMergingLastRow(int)
,
esd_getCellMergingFirstCol(int)
,
esd_getCellMergingLastCol(int)
public int esd_getCellMergingLastRow(int nIndex)
nIndex
- the merge cells range index
esd_getCellMergingFirstRow(int)
,
esd_getCellMergingFirstCol(int)
,
esd_getCellMergingLastCol(int)
public int esd_getCellMergingFirstCol(int nIndex)
nIndex
- the merge cells range index
esd_getCellMergingFirstRow(int)
,
esd_getCellMergingLastRow(int)
,
esd_getCellMergingLastCol(int)
public int esd_getCellMergingLastCol(int nIndex)
nIndex
- the merge cells range index
esd_getCellMergingFirstRow(int)
,
esd_getCellMergingLastRow(int)
,
esd_getCellMergingFirstCol(int)
public int MergeCellRangesCount()
public void esd_removeCellMerging(int nIndex)
nIndex
- the cell merging area indexpublic void esd_insertPageBreakAtRow(int row)
row
- the row after which the page break will be insertedesd_insertPageBreakAtColumn(int)
,
esd_resetAllPageBreaks()
public void esd_insertPageBreakAtColumn(int column)
column
- the column after which the page break will be insertedesd_insertPageBreakAtRow(int)
,
esd_resetAllPageBreaks()
public void esd_resetAllPageBreaks()
esd_insertPageBreakAtRow(int)
,
esd_insertPageBreakAtColumn(int)
public List getHorizontalPageBreaks()
getVerticalPageBreaks()
public List getVerticalPageBreaks()
getHorizontalPageBreaks()
public void esd_freezePanes(int splitRow, int splitColumn)
splitRow
- the row position of the splitsplitColumn
- the column position of the splitesd_freezePanes(int,int,int,int)
,
esd_unfreezePanes()
public void esd_freezePanes(int splitRow, int splitColumn, int topVisibleRow_BottomPane, int leftVisibleColumn_RightPane)
splitRow
- the row position of the splitsplitColumn
- the column position of the splittopVisibleRow_BottomPane
- the top row visible in the bottom paneleftVisibleColumn_RightPane
- the left most column visible in the right paneesd_freezePanes(int,int)
,
esd_unfreezePanes()
public void esd_split(int splitRow, int splitColumn)
splitRow
- the row position of the splitsplitColumn
- the column position of the splitesd_split(int,int,int,int)
,
esd_removeSplit()
public void esd_split(int splitRow, int splitColumn, int topVisibleRow_BottomPane, int leftVisibleColumn_RightPane)
splitRow
- the row position of the splitsplitColumn
- the column position of the splittopVisibleRow_BottomPane
- the top row visible in the bottom paneleftVisibleColumn_RightPane
- the left most visible column in the right paneesd_split(int,int)
,
esd_removeSplit()
public void esd_unfreezePanes()
esd_freezePanes(int,int)
,
esd_freezePanes(int,int,int,int)
public void esd_removeSplit()
esd_split(int,int)
,
esd_split(int,int,int,int)
public bool IsFreezePaneSet()
esd_freezePanes(int,int)
public void setFreezePaneSet(bool bValue)
public bool IsSplitSet()
esd_split(int,int,int,int)
public void setSplitSet(bool bValue)
public void Dispose()
public ExcelTable Clone()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |