接口 ITable
public interface ITable
Represents a table object on a worksheet.
-
方法概要
修饰符和类型方法说明void
Convert the range of cells that made up the table to a regular range of data.void
delete()
Deletes theITable
object and clears the cell data from theworksheet.void
Generate the table from json string.Filters a list using theIAutoFilter
.boolean
Gets whether to generate columns automatically while binding data.Gets the binding path of current table.Returns anITableColumns
collection that represents all the columnsin theITable
object.Gets the comment associated with the table object.Returns theIRange
object 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
.boolean
Gets whether to add/delete entire rows on data binding.Returns theIRange
object that represents the range of the header rowfor a table.getName()
Gets the name of theITable
object.getRange()
Returns theIRange
object that represents the range to which thespecified table object applies.getRows()
Returns theITableRows
that represents all the rows of data in theITable
object.boolean
Gets whether the AutoFilter is displayed.boolean
Gets whether the table filter button is visible.boolean
Gets whether the header information should be displayed for the specifiedITable
object.boolean
Gets if the column stripes table style is used for the specifiedITable
object .boolean
Gets if the first column is formatted for the specifiedITable
object.boolean
Gets if the last column is displayed for the specifiedITable
object.boolean
Gets if the row stripes table style is used for the specifiedITable
object.boolean
Gets whether the total row is visible.getSort()
Gets the sort column or columns, and sort order for theITable
collection.Gets the table style for the specifiedITable
object.void
The Resize method allows theITable
object to be resized over a newrange.void
setAutoGenerateColumns
(boolean value) Sets whether to generate columns automatically while binding data.void
setBindingPath
(String value) Sets the binding path of current table.void
setComment
(String value) Sets the comment associated with the table object.void
setDisplayName
(String value) Sets the display name for the specifiedITable
.void
setExpandBoundRows
(boolean value) Sets whether to add/delete entire rows on data binding.void
Sets the name of theITable
object.void
setShowAutoFilter
(boolean value) Sets whether the AutoFilter is displayed.void
setShowAutoFilterDropDown
(boolean value) Sets whether the table filter button is visible.void
setShowHeaders
(boolean value) Sets whether the header information should be displayed for the specifiedITable
object.void
setShowTableStyleColumnStripes
(boolean value) Sets if the column stripes table style is used for the specifiedITable
object .void
setShowTableStyleFirstColumn
(boolean value) Sets if the first column is formatted for the specifiedITable
object.void
setShowTableStyleLastColumn
(boolean value) Sets if the last column is displayed for the specifiedITable
object.void
setShowTableStyleRowStripes
(boolean value) Sets if the row stripes table style is used for the specifiedITable
object.void
setShowTotals
(boolean value) Sets whether the total row is visible.void
setTableStyle
(ITableStyle value) Sets the table style for the specifiedITable
object.toJson()
Generate the string from table.
-
方法详细资料
-
getName
String getName()Gets the name of theITable
object. -
setName
Sets the name of theITable
object. -
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 theITable
collection. -
getAutoFilter
IAutoFilter getAutoFilter()Filters a list using theIAutoFilter
. -
getRange
IRange getRange()Returns theIRange
object that represents the range to which thespecified table object applies. -
getDataRange
IRange getDataRange()Returns theIRange
object that represents the range that contains thedata area in the table between the header row and the insert row. -
getHeaderRange
IRange getHeaderRange()Returns theIRange
object 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 specifiedITable
object. -
setShowHeaders
void setShowHeaders(boolean value) Sets whether the header information should be displayed for the specifiedITable
object. -
getShowTableStyleColumnStripes
boolean getShowTableStyleColumnStripes()Gets if the column stripes table style is used for the specifiedITable
object . -
setShowTableStyleColumnStripes
void setShowTableStyleColumnStripes(boolean value) Sets if the column stripes table style is used for the specifiedITable
object . -
getShowTableStyleFirstColumn
boolean getShowTableStyleFirstColumn()Gets if the first column is formatted for the specifiedITable
object. -
setShowTableStyleFirstColumn
void setShowTableStyleFirstColumn(boolean value) Sets if the first column is formatted for the specifiedITable
object. -
getShowTableStyleLastColumn
boolean getShowTableStyleLastColumn()Gets if the last column is displayed for the specifiedITable
object. -
setShowTableStyleLastColumn
void setShowTableStyleLastColumn(boolean value) Sets if the last column is displayed for the specifiedITable
object. -
getShowTableStyleRowStripes
boolean getShowTableStyleRowStripes()Gets if the row stripes table style is used for the specifiedITable
object. -
setShowTableStyleRowStripes
void setShowTableStyleRowStripes(boolean value) Sets if the row stripes table style is used for the specifiedITable
object. -
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 anITableColumns
collection that represents all the columnsin theITable
object. -
getRows
ITableRows getRows()Returns theITableRows
that represents all the rows of data in theITable
object. -
getTableStyle
ITableStyle getTableStyle()Gets the table style for the specifiedITable
object. -
setTableStyle
Sets the table style for the specifiedITable
object. -
resize
The Resize method allows theITable
object to be resized over a newrange. No cells are inserted or moved.- API Note:
- The headers must remain in the same row, and the resulting table range must overlap the original table range.
- 参数:
range
- RequiredIRange
.
-
delete
void delete()Deletes theITable
object 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.- 参数:
json
-
-
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.
-