RowCollection

RowCollection

概要

RowCollection は Aspose.Slides の C++ 用 FOSS におけるクラスです。

テーブル内の行のコレクションを表します。

このクラスは C++ プログラムで RowCollection オブジェクトを操作するための 21 個のメソッドを提供します。利用可能なメソッドは RowCollection、add、add_clone、as_i_collection、as_i_enumerable、begin、clear、const_iterator、end、init_internal、insert_clone、iterator、および追加の 4 つのメソッドです。Aspose.Slides の C++ 用 FOSS パッケージをインストールすれば、すべてのパブリックメンバーは任意の C++ アプリケーションから利用可能です。プロパティ: const_iterator、iterator。

プロパティ

名前型アクセス説明
iteratoriterator読み取りイテレータを取得します。
const_iteratorconst_iterator読み取り定数イテレータを取得します。

メソッド

シグネチャ説明
iterator() → iteratorProperty はコレクションの iterator type へのアクセスを提供します。
iterator() → iterator
const_iterator() → const_iterator行コレクションの先頭への const iterator を返します
const_iterator() → const_iterator
RowCollection()
~RowCollection()
init_internal(tbl_element: pugi::xml_node, save_callback: std::function<void()>, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide, table: Table)コレクションを XML 要素から初期化します。すべての 子要素を解析し、対応する Row オブジェクトを作成します。
rebuild()保存された XML 要素から rows リストを再構築します。既存の rows をクリアし、すべての 子要素を再解析します。
size() → std::size_t行数を返します。
add(row: std::unique_ptr<Row>) → Rowコレクションに行を追加します。
add_clone(templ: Row, with_attached_rows: bool) → std::vector<Row*>与えられたテンプレート行をクローンし、末尾に追加します。
insert_clone(index: std::size_t, templ: Row, with_attached_rows: bool) → std::vector<Row*>与えられたテンプレート行をクローンし、指定されたインデックスに挿入します。
remove_at(first_row_index: std::size_t, with_attached_rows: bool)指定されたインデックスの行を削除します。
remove_at(index: std::size_t)指定されたインデックスの行を削除します。
clear()すべての行を削除します。
as_i_collection() → std::vector<Row*>行のスナップショットを raw ポインタとして返します。
as_i_enumerable() → std::vector<Row*>行のスナップショットを生ポインタとして返します(as_i_collection と同じ)。
begin() → iterator
end() → iterator
begin() → const_iterator
end() → const_iterator

参照

 日本語