Package com.grapecity.documents.excel
Interface ITable
public interface ITable
Represents a table object on a worksheet.
-
Method Summary
Modifier and TypeMethodDescriptionvoidConvert the range of cells that made up the table to a regular range of data.voiddelete()Deletes theITableobject and clears the cell data from theworksheet.voidGenerate the table from json string.Filters a list using theIAutoFilter.booleanGets whether to generate columns automatically while binding data.Gets the binding path of current table.Returns anITableColumnscollection that represents all the columnsin theITableobject.Gets the comment associated with the table object.Returns theIRangeobject that represents the range that contains thedata area in the table between the header row and the insert row.Gets the display name for the specifiedITable.booleanGets whether to add/delete entire rows on data binding.Returns theIRangeobject that represents the range of the header rowfor a table.getName()Gets the name of theITableobject.getRange()Returns theIRangeobject that represents the range to which thespecified table object applies.getRows()Returns theITableRowsthat represents all the rows of data in theITableobject.booleanGets whether the AutoFilter is displayed.booleanGets whether the table filter button is visible.booleanGets whether the header information should be displayed for the specifiedITableobject.booleanGets if the column stripes table style is used for the specifiedITableobject .booleanGets if the first column is formatted for the specifiedITableobject.booleanGets if the last column is displayed for the specifiedITableobject.booleanGets if the row stripes table style is used for the specifiedITableobject.booleanGets whether the total row is visible.getSort()Gets the sort column or columns, and sort order for theITablecollection.Gets the table style for the specifiedITableobject.voidThe Resize method allows theITableobject to be resized over a newrange.voidsetAutoGenerateColumns(boolean value) Sets whether to generate columns automatically while binding data.voidsetBindingPath(String value) Sets the binding path of current table.voidsetComment(String value) Sets the comment associated with the table object.voidsetDisplayName(String value) Sets the display name for the specifiedITable.voidsetExpandBoundRows(boolean value) Sets whether to add/delete entire rows on data binding.voidSets the name of theITableobject.voidsetShowAutoFilter(boolean value) Sets whether the AutoFilter is displayed.voidsetShowAutoFilterDropDown(boolean value) Sets whether the table filter button is visible.voidsetShowHeaders(boolean value) Sets whether the header information should be displayed for the specifiedITableobject.voidsetShowTableStyleColumnStripes(boolean value) Sets if the column stripes table style is used for the specifiedITableobject .voidsetShowTableStyleFirstColumn(boolean value) Sets if the first column is formatted for the specifiedITableobject.voidsetShowTableStyleLastColumn(boolean value) Sets if the last column is displayed for the specifiedITableobject.voidsetShowTableStyleRowStripes(boolean value) Sets if the row stripes table style is used for the specifiedITableobject.voidsetShowTotals(boolean value) Sets whether the total row is visible.voidsetTableStyle(ITableStyle value) Sets the table style for the specifiedITableobject.toJson()Generate the string from table.
-
Method Details
-
getName
String getName()Gets the name of theITableobject. -
setName
Sets the name of theITableobject. -
getDisplayName
String getDisplayName()Gets the display name for the specifiedITable. -
setDisplayName
Sets the display name for the specifiedITable. -
getComment
String getComment()Gets the comment associated with the table object. -
setComment
Sets the comment associated with the table object. -
getSort
ISort getSort()Gets the sort column or columns, and sort order for theITablecollection. -
getAutoFilter
IAutoFilter getAutoFilter()Filters a list using theIAutoFilter. -
getRange
IRange getRange()Returns theIRangeobject that represents the range to which thespecified table object applies. -
getDataRange
IRange getDataRange()Returns theIRangeobject that represents the range that contains thedata area in the table between the header row and the insert row. -
getHeaderRange
IRange getHeaderRange()Returns theIRangeobject that represents the range of the header rowfor a table. -
getTotalsRange
IRange getTotalsRange() -
getShowAutoFilter
boolean getShowAutoFilter()Gets whether the AutoFilter is displayed. -
setShowAutoFilter
void setShowAutoFilter(boolean value) Sets whether the AutoFilter is displayed. -
getShowAutoFilterDropDown
boolean getShowAutoFilterDropDown()Gets whether the table filter button is visible. -
setShowAutoFilterDropDown
void setShowAutoFilterDropDown(boolean value) Sets whether the table filter button is visible. -
getShowHeaders
boolean getShowHeaders()Gets whether the header information should be displayed for the specifiedITableobject. -
setShowHeaders
void setShowHeaders(boolean value) Sets whether the header information should be displayed for the specifiedITableobject. -
getShowTableStyleColumnStripes
boolean getShowTableStyleColumnStripes()Gets if the column stripes table style is used for the specifiedITableobject . -
setShowTableStyleColumnStripes
void setShowTableStyleColumnStripes(boolean value) Sets if the column stripes table style is used for the specifiedITableobject . -
getShowTableStyleFirstColumn
boolean getShowTableStyleFirstColumn()Gets if the first column is formatted for the specifiedITableobject. -
setShowTableStyleFirstColumn
void setShowTableStyleFirstColumn(boolean value) Sets if the first column is formatted for the specifiedITableobject. -
getShowTableStyleLastColumn
boolean getShowTableStyleLastColumn()Gets if the last column is displayed for the specifiedITableobject. -
setShowTableStyleLastColumn
void setShowTableStyleLastColumn(boolean value) Sets if the last column is displayed for the specifiedITableobject. -
getShowTableStyleRowStripes
boolean getShowTableStyleRowStripes()Gets if the row stripes table style is used for the specifiedITableobject. -
setShowTableStyleRowStripes
void setShowTableStyleRowStripes(boolean value) Sets if the row stripes table style is used for the specifiedITableobject. -
getShowTotals
boolean getShowTotals()Gets whether the total row is visible. -
setShowTotals
void setShowTotals(boolean value) Sets whether the total row is visible. -
getColumns
ITableColumns getColumns()Returns anITableColumnscollection that represents all the columnsin theITableobject. -
getRows
ITableRows getRows()Returns theITableRowsthat represents all the rows of data in theITableobject. -
getTableStyle
ITableStyle getTableStyle()Gets the table style for the specifiedITableobject. -
setTableStyle
Sets the table style for the specifiedITableobject. -
resize
The Resize method allows theITableobject to be resized over a newrange. No cells are inserted or moved.- Parameters:
range- RequiredIRange.- API Note:
- The headers must remain in the same row, and the resulting table range must overlap the original table range.
-
delete
void delete()Deletes theITableobject and clears the cell data from theworksheet. -
getBindingPath
String getBindingPath()Gets the binding path of current table. -
setBindingPath
Sets the binding path of current table. -
getAutoGenerateColumns
boolean getAutoGenerateColumns()Gets whether to generate columns automatically while binding data. -
setAutoGenerateColumns
void setAutoGenerateColumns(boolean value) Sets whether to generate columns automatically while binding data. -
fromJson
Generate the table from json string.- Parameters:
json- The JSON string representing the table.
-
toJson
String toJson()Generate the string from table. -
getExpandBoundRows
boolean getExpandBoundRows()Gets whether to add/delete entire rows on data binding. -
setExpandBoundRows
void setExpandBoundRows(boolean value) Sets whether to add/delete entire rows on data binding. -
convertToRange
void convertToRange()Convert the range of cells that made up the table to a regular range of data.
-