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。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
CommentCollection | CommentCollection | 読み取り | コメントコレクションを取得します。 |
ICommentCollection | ICommentCollection | 読み取り | 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 によって内部的に使用されます)。 |