CommentCollection
概述
CommentCollection 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。
表示工作表上评论(旧版备注)的集合。
此结构体为 Rust 程序中的 CommentCollection 对象声明了 11 个方法。可用的方法包括:add、add_a1、clear、count、get、get_by_cell_name、get_count、item、item_by_cell_name、remove_at、remove_at_cell_name。在安装 Aspose.Cells 为 Rust 提供的 FOSS 包后,公共成员可供任何 Rust 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
count() → usize | 获取项目的数量。 |
get_count() → usize | 获取项目的数量。 |
add(row: i32, column: i32) → Result<usize, CellsError> | 在给定的 A1 样式单元格引用处添加一个空评论并返回它。 |
add_a1(cell_name: impl Into<String>) → Result<usize, CellsError> | 添加一个项目。 |
get(index: usize) → Option<Comment<'_>> | 获取集合中的项。 |
item(index: usize) → Option<Comment<'_>> | 获取集合中的项。 |
get_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | 获取关联的值。 |
item_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | 从集合中获取该项。 |
remove_at(index: usize) → Result<(), CellsError> | 删除一个项目。 |
remove_at_cell_name(cell_name: impl Into<String>) → Result<(), CellsError> | 删除一个项目。 |
clear() | 清除当前状态。 |