CommentCollection
概要
CommentCollection は Aspose.Cells FOSS for Rust の構造体です。
ワークシート上のコメント(レガシーノート)のコレクションを表します。
この構造体は Rust プログラム内の CommentCollection オブジェクト向けに 11 個のメソッドを宣言します。利用可能なメソッドは、add、add_a1、clear、count、get、get_by_cell_name、get_count、item、item_by_cell_name、remove_at、remove_at_cell_name です。パブリックメンバーは、Aspose.Cells FOSS for Rust パッケージをインストールした後、任意の Rust アプリケーションから利用可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
count() → usize | 項目の数を取得します。 |
get_count() → usize | 項目の数を取得します。 |
add(row: i32, column: i32) → Result<usize, CellsError> | 指定された A1 形式のセル参照に空のコメントを追加し、そのコメントを返します。 |
add_a1(cell_name: impl Into<String>) → Result<usize, CellsError> | アイテムを追加します。 |
get(index: usize) → Option<Comment<'_>> | コレクションから項目を取得します。 |
item(index: usize) → Option<Comment<'_>> | コレクションから項目を取得します。 |
get_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | 関連付けられた値を取得します。 |
item_by_cell_name(cell_name: impl Into<String>) → Result<Option<Comment<'_>>, CellsError> | コレクションから項目を取得します。 |
remove_at(index: usize) → Result<(), CellsError> | 項目を削除します。 |
remove_at_cell_name(cell_name: impl Into<String>) → Result<(), CellsError> | 項目を削除します。 |
clear() | 現在の状態をクリアします。 |