ShapeCollection
概要
ShapeCollection は Rust 用の Aspose.Cells FOSS における struct です。
ワークシート上の描画オブジェクト(シェイプ)のコレクションを表します。
この struct は Rust プログラム内の ShapeCollection オブジェクト向けに 7 つのメソッドを宣言しています。利用可能なメソッドは add、clear、count、get、get_count、item、remove_at です。パブリックメンバーは、Aspose.Cells FOSS for Rust パッケージをインストールした後、あらゆる Rust アプリケーションからアクセス可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
count() → usize | 項目の数を取得します。 |
get_count() → usize | アイテムの数を取得します。 |
add(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, shape_type: AutoShapeType) → Result<usize, CellsError> | ワークシートに新しいシェイプを追加し、ゼロベースのインデックスを返します。 |
get(index: usize) → Option<Shape<'_>> | コレクションから項目を取得します。 |
item(index: usize) → Option<Shape<'_>> | コレクションから項目を取得します。 |
remove_at(index: usize) → Result<(), CellsError> | アイテムを削除します。 |
clear() | 現在の状態をクリアします。 |