CommentCollection

CommentCollection

Overview

CommentCollection là một lớp trong Aspose.Slides FOSS cho Java. Dòng thừa kế từ: ICommentCollection.

Nó đại diện cho một tập hợp các bình luận của một tác giả.

Khóa học này cung cấp 20 phương pháp để làm việc với các đối tượng CommentCollection trong các chương trình Java. Các phương pháp có sẵn bao gồm: CommentCollection, addComment, asICollection, asIEnumerable, buildComment, clear, collectMyComments, findCommentByIdx, get, getAllCommentsParts, getAuthorObj, getOrCreateCommentsPart,Và 7 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 bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.Slides FOSS cho gói Java. Tài sản : allCommentsParts, authorObj.

Properties

NameTypeAccessDescription
authorObjICommentAuthorReadGiải quyết đối tượng sở hữu {@link ICommentAuthor} từ dữ liệu tác giả hỗ trợ.
allCommentsPartsList<CommentsPartEntry>ReadTrả lại tất cả {@link CommentsPart} ví dụ trên tất nhiên các slides có chứa bình luận của tác giả này.

Methods

SignatureDescription
CommentCollection(author: ICommentAuthor)Tạo một bộ sưu tập bình luận cho tác giả đã được cung cấp.
initInternal(authorData: AuthorData, authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation)Khởi động bộ sưu tập này với dữ liệu hỗ trợ cấp gói.
resolveSlide(partName: String)ISlideTrả lại {@link ISlide} tên phần tương ứng với tên của phần, hoặc { @code null}.
getAuthorObj()ICommentAuthorGiải quyết đối tượng sở hữu {@link ICommentAuthor} từ dữ liệu tác giả hỗ trợ.
getAllCommentsParts()List<CommentsPartEntry>Trả lại tất cả {@link CommentsPart} ví dụ trên tất nhiên các slides có chứa bình luận của tác giả này.
getOrCreateCommentsPart(slidePartName: String)CommentsPartNhận hoặc tạo {@link CommentsPart} cho tên phần nhấp chuột.
buildComment(data: CommentData, cp: CommentsPart, slideObj: ISlide)CommentXây dựng một {@link Comment} từ dữ liệu bình luận nguyên chất, phần bình báo và một slide tùy chọn.
collectMyComments()List<MyCommentEntry>Thu thập tất cả các bình luận của tác giả này trên tất nhiên các slides trong gói.
addComment(text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime)ICommentThêm một bình luận mới với văn bản, slide, vị trí và thời gian tạo, trả về IComment
insertComment(index: int, text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime)ICommentNhập một bình luận vào chỉ mục cụ thể với chi tiết, trả về IComment
removeAt(index: int)Xóa bình luận trên chỉ số cụ thể
remove(comment: IComment)Xóa IComment được chỉ định từ bộ sưu tập
clear()Xóa tất cả bình luận từ bộ sưu tập
get(index: int)ICommentTrở lại IComment tại chỉ số đã được cung cấp
size()intTrả lại số lượng bình luận trong bộ sưu tập
toArray()IComment[]Trả lại một phần của các bình luận bắt đầu với StartIndex với các yếu tố tính toán
toArray(startIndex: int, count: int)IComment[]
asICollection()List<IComment>Trả lại các bình luận như một Danh sách
asIEnumerable()Iterable<IComment>Trả lại các bình luận như một Iterable
findCommentByIdx(idx: int)Optional<IComment>Trả lại một tùy chọn có chứa bình luận trên chỉ số, nếu hiện tại

See Also

 Tiếng Việt