ListColumn

概述

ListColumn 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。

表示 Excel 表格中的单列。

此结构体为 Rust 程序中的 ListColumn 对象声明了 14 个方法。可用的方法包括:get_name、get_totals_calculation、get_totals_row_formula、get_totals_row_label、name、set_name、set_totals_calculation、set_totals_row_formula、set_totals_row_label、totals_calculation、totals_calculation_from_string、totals_calculation_to_string,以及另外 2 个方法。公共成员在安装 Aspose.Cells 为 Rust 提供的 FOSS 包后,可供任何 Rust 应用访问。

方法

签名描述
name() → &str获取在标题行中显示的列标题名称。
get_name() → &str获取显示在标题行中的列标题名称。
set_name(value: impl Into<String>) → Result<(), CellsError>设置在标题行中显示的列标题名称。
totals_calculation() → TotalsCalculation获取显示在合计行单元格中的聚合函数。
get_totals_calculation() → TotalsCalculation获取显示在汇总行单元格中的聚合函数。
set_totals_calculation(value: TotalsCalculation)设置在汇总行单元格中显示的聚合函数。
totals_row_label() → &str当 TotalsCalculation 为 None 时,获取显示在合计行中的静态标签。
get_totals_row_label() → &str当 TotalsCalculation 为 None 时,获取显示在合计行中的静态标签。
set_totals_row_label(value: impl Into<String>)当 TotalsCalculation 为 None 时,设置显示在合计行中的静态标签。
totals_row_formula() → &str获取当 TotalsCalculation 为 Custom 时使用的自定义公式。
get_totals_row_formula() → &str获取当 TotalsCalculation 为 Custom 时使用的自定义公式。
set_totals_row_formula(value: impl Into<String>)当 TotalsCalculation 为 Custom 时,设置使用的自定义公式。
totals_calculation_from_string(value: String) → TotalsCalculation将 SpreadsheetML totals-row 函数文本转换为公共总计计算值。
totals_calculation_to_string(value: TotalsCalculation) → String将公共总计计算值转换为 SpreadsheetML totals-row 函数文本。

另请参阅

 中文