ShapeCollection
ShapeCollection
Przegląd
ShapeCollection jest structem w Aspose.Cells FOSS dla Rust.
Reprezentuje kolekcję obiektów rysunkowych (kształtów) na arkuszu.
Ten struct deklaruje 7 metod dla obiektów ShapeCollection w programach Rust. Dostępne metody obejmują: add, clear, count, get, get_count, item, remove_at. Publiczne elementy są dostępne dla każdej aplikacji Rust po zainstalowaniu pakietu Aspose.Cells FOSS dla Rust.
Metody
| Sygnatura | Opis |
|---|---|
count() → usize | Zwraca liczbę elementów. |
get_count() → usize | Zwraca liczbę elementów. |
add(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, shape_type: AutoShapeType) → Result<usize, CellsError> | Dodaje nowy kształt do arkusza i zwraca jego indeks zerowy. |
get(index: usize) → Option<Shape<'_>> | Pobiera element z kolekcji. |
item(index: usize) → Option<Shape<'_>> | Pobiera element z kolekcji. |
remove_at(index: usize) → Result<(), CellsError> | Usuwa element. |
clear() | Czyści bieżący stan. |