ChartCollection

ChartCollection

概述

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

表示工作表上的图表集合。

此结构体为 Rust 程序中的 ChartCollection 对象声明了 6 个方法。可用的方法包括:add、count、get、get_count、item、remove_at。在安装 Aspose.Cells 为 Rust 提供的 FOSS 包之后,公共成员可供任何 Rust 应用程序访问。

方法

签名描述
count() → usize获取工作表上图表的数量。
get_count() → i32获取工作表上图表的数量。
add(chart_type: ChartType, data_range: String, upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32) → Result<i32, CellsError>在工作表中添加一个指定类型的新图表。
get(index: usize) → Option<Chart<'_>>获取指定零基索引处的图表。
item(index: usize) → Option<Chart<'_>>获取指定零基索引处的图表。
remove_at(index: usize) → Result<(), CellsError>删除指定零基索引处的图表。

另请参阅

 中文