ShapeCollection
Overview
ShapeCollection is a struct in Aspose.Cells FOSS for Rust.
Represents collection of drawing objects (shapes) on a worksheet.
This struct provides 7 methods for working with ShapeCollection objects in Rust programs.
Available methods include: add, clear, count, get, get_count, item, remove_at.
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(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, shape_type: AutoShapeType) → Result<usize, CellsError> | Adds a new shape to the worksheet and returns its zero-based index. |
get(index: usize) → Option<Shape<'_>> | Gets the item from the collection. |
item(index: usize) → Option<Shape<'_>> | Gets the item from the collection. |
remove_at(index: usize) → Result<(), CellsError> | Removes an item. |
clear() | Clears the current state. |