ShapeCollection
概述
ShapeCollection 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。
表示工作表上绘图对象(形状)的集合。
此结构体为 Rust 程序中的 ShapeCollection 对象声明了 7 个方法。可用的方法包括:add、clear、count、get、get_count、item、remove_at。在安装了 Aspose.Cells 为 Rust 提供的 FOSS 包后,公共成员可供任何 Rust 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
count() → usize | 获取项目的数量。 |
get_count() → usize | 获取项目的数量。 |
add(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, shape_type: AutoShapeType) → Result<usize, CellsError> | 向工作表添加一个新形状,并返回其从零开始的索引。 |
get(index: usize) → Option<Shape<'_>> | 从集合中获取该项。 |
item(index: usize) → Option<Shape<'_>> | 获取集合中的项。 |
remove_at(index: usize) → Result<(), CellsError> | 移除一个项目。 |
clear() | 清除当前状态。 |