CommentCollection
Overview
CommentCollection is a struct in Aspose.Cells FOSS for Rust.
Represents the collection of comments (legacy notes) on a worksheet.
This struct provides 11 methods for working with CommentCollection objects in Rust programs.
Available methods include: add, add_a1, clear, count, get, get_by_cell_name, get_count, item, item_by_cell_name, remove_at, remove_at_cell_name.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Methods
| Signature | Description |
|---|---|
count() → usize | Gets the number of items. |
get_count() → usize | Gets the number of items. |
add(row: i32, column: i32) → Result<usize, CellsError> | Adds an empty comment at the given A1-style cell reference and returns it. |
add_a1(cell_name: impl Into<String>) → Result<usize, CellsError> | Adds an item. |
get(index: usize) → Option<Comment<'_>> | Gets the item from the collection. |
item(index: usize) → Option<Comment<'_>> | Gets the item from the collection. |
get_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | Gets the associated value. |
item_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | Gets the item from the collection. |
remove_at(index: usize) → Result<(), CellsError> | Removes an item. |
remove_at_cell_name(cell_name: impl Into<String>) → Result<(), CellsError> | Removes an item. |
clear() | Clears the current state. |