ListObject
概述
ListObject 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。
表示一个 Excel 表格(结构化引用 / ListObject)。
该结构体在 Rust 程序中为 ListObject 对象声明了 48 个方法。可用的方法包括:comment、convert_to_range、data_range、display_name、end_column、end_row、get_comment、get_data_range、get_display_name、get_end_column、get_end_row、get_list_columns,以及另外 36 个方法。公共成员在安装 Aspose.Cells 为 Rust 提供的 FOSS 包后,可供任何 Rust 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
display_name() → &str | 获取用户可见的表名。 |
get_display_name() → &str | 获取用户可见的表名称。 |
set_display_name(value: impl Into<String>) → Result<(), CellsError> | 设置用户可见的表名称。 |
comment() → &str | 获取表的可选注释。 |
get_comment() → &str | 获取表的可选注释。 |
set_comment(value: impl Into<String>) | 为表设置可选的注释。 |
start_row() → u32 | 获取第一行的零基行索引。 |
get_start_row() → u32 | 获取第一行的零基行索引。 |
start_column() → u32 | 获取第一列的零基列索引。 |
get_start_column() → u32 | 获取第一列的零基列索引。 |
end_row() → u32 | 获取最后一行的零基行索引。 |
get_end_row() → u32 | 获取最后一行的零基行索引。 |
end_column() → u32 | 获取最后一列的零基列索引。 |
get_end_column() → u32 | 获取最后一列的零基列索引。 |
data_range() → String | 获取表格范围(A1 表示法)。 |
get_data_range() → String | 获取以 A1 表示法表示的表格范围。 |
show_header_row() → bool | 获取表格范围的第一行是否为标题行。 |
get_show_header_row() → bool | 获取表格范围的第一行是否为标题行。 |
set_show_header_row(value: bool) | 设置表格范围的第一行是否为标题行。 |
show_totals() → bool | 获取表格范围的最后一行是否为汇总行。 |
get_show_totals() → bool | 获取表格范围的最后一行是否为合计行。 |
set_show_totals(value: bool) | 设置表格范围的最后一行是否为合计行。 |
show_auto_filter_enabled() → bool | 获取标题行是否显示自动筛选下拉按钮。 |
get_show_auto_filter() → bool | 获取标题行是否显示自动筛选下拉按钮。 |
show_auto_filter() | 在表头行上显示自动筛选下拉按钮。 |
remove_auto_filter() | 隐藏表头行的自动筛选下拉按钮。 |
table_style_type() → TableStyleType | 获取内置表格样式类型。 |
get_table_style_type() → TableStyleType | 获取内置表格样式类型。 |
set_table_style_type(value: TableStyleType) | 设置内置表格样式类型。 |
table_style_name() → &str | 获取存储在 SpreadsheetML 中的原始表格样式名称。 |
get_table_style_name() → &str | 获取存储在 SpreadsheetML 中的原始表格样式名称。 |
set_table_style_name(value: impl Into<String>) | 设置存储在 SpreadsheetML 中的原始表格样式名称。 |
show_table_style_first_column() → bool | 获取第一列是否接收突出显示格式。 |
get_show_table_style_first_column() → bool | 获取第一列是否接收突出显示格式。 |
set_show_table_style_first_column(value: bool) | 设置第一列是否接收高亮格式。 |
show_table_style_last_column() → bool | 获取最后一列是否接收突出显示格式。 |
get_show_table_style_last_column() → bool | 获取最后一列是否接收突出显示格式。 |
set_show_table_style_last_column(value: bool) | 设置最后一列是否接收高亮格式。 |
show_table_style_row_stripes() → bool | 获取是否显示交替行条纹。 |
get_show_table_style_row_stripes() → bool | 获取是否显示交替行条纹。 |
set_show_table_style_row_stripes(value: bool) | 设置是否显示交替的行条纹。 |
show_table_style_column_stripes() → bool | 获取是否显示交替列条纹。 |
get_show_table_style_column_stripes() → bool | 获取是否显示交替列条纹。 |
set_show_table_style_column_stripes(value: bool) | 设置是否显示交替的列条纹。 |
list_columns() → ListColumnCollection<'_> | 获取此表中的列集合。 |
get_list_columns() → ListColumnCollection<'_> | 获取此表中的列集合。 |
resize(start_row: i32, start_column: i32, end_row: i32, end_column: i32, has_headers: bool) → Result<(), CellsError> | 将表格大小调整为指定的范围。 |
convert_to_range() | 删除表结构,保留单元格数据。 |