CommentCollection

CommentCollection

概要

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

単一の作成者に属するコメントのコレクションを管理します。

このクラスは C++ プログラムで CommentCollection オブジェクトを操作するための 16 のメソッドを提供します。利用可能なメソッドは CommentCollection、ICommentCollection、add_comment、as_i_collection、as_i_enumerable、clear、find_comment_by_idx、insert_comment、remove、remove_at、remove_comment、size、および追加の 1 つのメソッドです。Aspose.Slides の C++ 用 FOSS パッケージをインストールすると、すべてのパブリックメンバーが任意の C++ アプリケーションから利用可能になります。プロパティ: CommentCollection、ICommentCollection。

プロパティ

名前型アクセス説明
CommentCollectionCommentCollection読み取りコメントコレクションを取得します。
ICommentCollectionICommentCollection読み取りi コメント コレクションを取得します。

メソッド

シグネチャ説明
CommentCollection() → CommentCollection指定された作成者が所有するコレクションを構築します。
ICommentCollection() → ICommentCollectionプロパティはこのコレクションに対して ICommentCollection インターフェースを提供します。
ICommentCollection() → ICommentCollection
CommentCollection()指定された作者が所有するコレクションを構築します。
add_comment(text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment新しいコメントを追加し、その参照を返します。
insert_comment(index: std::size_t, text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment指定されたインデックスにコメントを挿入し、その参照を返します。
remove_at(index: std::size_t)指定されたインデックスのコメントを削除します。
remove(comment: Comment)指定されたコメント(およびその返信)をコレクションから削除します。
clear()このコレクションからすべてのコメントを削除します。
size() → std::size_tコメント数を返します。
to_array() → std::vector<Comment*>すべてのコメントへの所有権を持たないポインタのベクタを返します。
to_array(start: std::size_t, count: std::size_t) → std::vector<Comment*>すべてのコメントへの所有権を持たないポインタのベクタを返します。
find_comment_by_idx(idx: std::uint32_t) → Comment著者ごとに一意なインデックスでコメントを検索し、見つからなければ nullptr を返します。
as_i_collection() → ICommentCollectionこのコレクションへの参照を汎用コレクションインターフェースとして返します。
as_i_enumerable() → ICommentCollectionこのコレクションへの参照を、汎用列挙インターフェイスとして返します。
remove_comment(comment: Comment)ポインタで特定のコメントを削除します(Comment::remove によって内部的に使用されます)。

参照

 日本語