CommentCollection

CommentCollection

Przegląd

CommentCollection jest structem w Aspose.Cells FOSS dla Rust.

Reprezentuje zbiór komentarzy (legacy notes) w arkuszu.

Ten struct deklaruje 11 metod dla obiektów CommentCollection w programach Rust. Dostępne metody to: add, add_a1, clear, count, get, get_by_cell_name, get_count, item, item_by_cell_name, remove_at, remove_at_cell_name. Publiczne elementy są dostępne dla każdej aplikacji Rust po zainstalowaniu pakietu Aspose.Cells FOSS dla Rust.

Metody

SygnaturaOpis
count() → usizeZwraca liczbę elementów.
get_count() → usizeZwraca liczbę elementów.
add(row: i32, column: i32) → Result<usize, CellsError>Dodaje pusty komentarz w podanej komórce w stylu A1 i zwraca go.
add_a1(cell_name: impl Into<String>) → Result<usize, CellsError>Dodaje element.
get(index: usize) → Option<Comment<'_>>Pobiera element z kolekcji.
item(index: usize) → Option<Comment<'_>>Pobiera element z kolekcji.
get_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError>Pobiera powiązaną wartość.
item_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError>Pobiera element z kolekcji.
remove_at(index: usize) → Result<(), CellsError>Usuwa element.
remove_at_cell_name(cell_name: impl Into<String>) → Result<(), CellsError>Usuwa element.
clear()Czyści bieżący stan.

Zobacz także

 Polski