CommentCollection

CommentCollection

Overview

CommentCollection là một lớp trong Aspose.Slides FOSS cho C++.

Quản lý một bộ sưu tập các bình luận thuộc về một tác giả duy nhất.

Khóa học này cung cấp 16 phương pháp để làm việc với các đối tượng CommentCollection trong các chương trình C++. Các phương pháp có sẵn bao gồm: CommentCollection, ICommentCollection, add_comment, as_i_collection, as_i_enumerable, clear, find_comment_by_idx, insert_comment, remove, remove_at, remove_comment, size,và 1 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập vào bất kỳ ứng dụng C++ nào sau khi cài đặt Aspose.Slides FOSS cho gói C ++. Tài sản : CommentCollection, ICommentCollection.

Properties

NameTypeAccessDescription
CommentCollectionCommentCollectionReadNhận được bộ sưu tập bình luận.
ICommentCollectionICommentCollectionReadNhận được bộ sưu tập I comment.

Methods

SignatureDescription
CommentCollection()CommentCollectionXây dựng một bộ sưu tập thuộc sở hữu của tác giả.
ICommentCollection()ICommentCollectionBất động sản cung cấp giao diện ICommentCollection cho bộ sưu tập này
ICommentCollection()ICommentCollection
CommentCollection()Xây dựng một bộ sưu tập thuộc sở hữu của tác giả.
add_comment(text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point)CommentThêm một bình luận mới và trả về một đề cập đến nó.
insert_comment(index: std::size_t, text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point)CommentNhập một bình luận vào chỉ số đó và trả về một tham chiếu.
remove_at(index: std::size_t)Xóa bình luận trên chỉ số đã được cung cấp.
remove(comment: Comment)Xóa bình luận (và phản hồi) từ bộ sưu tập.
clear()Xóa tất cả các bình luận từ bộ sưu tập này.
size()std::size_tTrả lại số lượng bình luận.
to_array()std::vector<Comment*>Trả lại một vector của các chỉ số không sở hữu cho tất cả các bình luận.
to_array(start: std::size_t, count: std::size_t)std::vector<Comment*>Trả lại một vector của các chỉ số không sở hữu cho tất cả các bình luận.
find_comment_by_idx(idx: std::uint32_t)CommentTìm một bình luận bằng chỉ số độc đáo của nó, hoặc nullptr nếu không tìm thấy.
as_i_collection()ICommentCollectionTrả lại một tham chiếu đến bộ sưu tập này như là giao diện bộ thu chung.
as_i_enumerable()ICommentCollectionTrả lại một tham chiếu đến bộ sưu tập này như là một giao diện tổng hợp chung.
remove_comment(comment: Comment)Xóa một bình luận cụ thể bằng cách chỉ (được sử dụng nội bộ bởi Comment::remove).

See Also

 Tiếng Việt