CommentCollection
개요
CommentCollection은 Aspose.Slides FOSS for C++의 클래스입니다.
단일 작성자에 속한 댓글 컬렉션을 관리합니다.
이 클래스는 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 FOSS for C++ 패키지를 설치한 후 모든 C++ 애플리케이션에서 공개 멤버에 접근할 수 있습니다. 속성: CommentCollection, ICommentCollection.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
CommentCollection | CommentCollection | 읽기 | 댓글 컬렉션을 가져옵니다. |
ICommentCollection | ICommentCollection | 읽기 | i comment collection을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
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*> | 모든 댓글에 대한 non-owning 포인터들의 벡터를 반환합니다. |
to_array(start: std::size_t, count: std::size_t) → std::vector<Comment*> | 모든 댓글에 대한 non-owning 포인터들의 벡터를 반환합니다. |
find_comment_by_idx(idx: std::uint32_t) → Comment | 고유한 작성자별 인덱스로 댓글을 찾아 반환하며, 찾지 못할 경우 nullptr를 반환합니다. |
as_i_collection() → ICommentCollection | 이 컬렉션에 대한 참조를 일반 컬렉션 인터페이스 형태로 반환합니다. |
as_i_enumerable() → ICommentCollection | 이 컬렉션에 대한 참조를 일반 열거형 인터페이스로 반환합니다. |
remove_comment(comment: Comment) | 포인터를 통해 특정 댓글을 제거합니다 (Comment::remove에서 내부적으로 사용됨). |