AutoFilter
AutoFilter
Overview
AutoFilter 是Python的Aspose.Cells FOSS中的一个类.
在工作表中表示自动过器.
这个类提供了在Python程序中使用AutoFilter 对象的15种方法. 有的方法包括: __init__, add_filter, clear_all_filters, clear_column_filter, custom_filter, filter, filter_by_color, filter_dynamic, filter_top10, get_filter_column, has_filter, remove,另外还有3种方法. 在安装Python包的Aspose.Cells FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: filter_columns, range, sort_state.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
range | `` | 阅读/写作 | 获取或设置过范围. |
filter_columns | `` | Read | 得到了选列的集合. |
sort_state | `` | 阅读/写作 | 获取或设置排序状态的设定. |
Methods
| Signature | Description |
|---|---|
__init__() | 启动一个新的 AutoFilter 类实例. |
set_range(start_row, start_col, end_row, end_col) | 使用行和列索引设置过范围. |
filter(col_index, values) | 将过器应用到特定的列中. |
add_filter(col_index, value) | 将过值添加到特定列中. |
custom_filter(col_index, operator, value) | 将自定义过器应用到特定的列. |
filter_by_color(col_index, color, cell_color) | 将颜色过器应用到特定的列中. |
filter_top10(col_index, top, percent, val) | 将前10个过器应用到特定的列中. |
filter_dynamic(col_index, filter_type, value) | 将动态过器应用到特定的列. |
clear_column_filter(col_index) | 清除特定列的过器. |
clear_all_filters() | 清除所有过器. |
remove() | 从工作表中删除自动过器. |
show_filter_button(col_index, show) | 显示或隐藏特定列的过按. |
sort(col_index, ascending) | 设置特定列的排序顺序. |
get_filter_column(col_index) | 获取特定列索引的过列. |
has_filter(col_index) | 检查特定列是否有过器. |