CommentCollection

CommentCollection

ภาพรวม

CommentCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ Java. ทายาทจาก: ICommentCollection.

เป็นการรวบรวมความคิดเห็นของผู้เขียนคนหนึ่ง.

หมวดนี้ให้วิธีการ 20 สําหรับทํางานกับ CommentCollection วัตถุในโปรแกรม Java. วิธีการที่ใช้ได้แก่: CommentCollection, addComment, asICollection, asIEnumerable, buildComment, clear, collectMyComments, findCommentByIdx, get, getAllCommentsParts, getAuthorObj, getOrCreateCommentsPart,และ 7 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: allCommentsParts, authorObj.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
authorObjICommentAuthorอ่านแก้ไขของเจ้าของ {@link ICommentAuthor} ของวัตถุจากข้อมูลผู้เขียนการสนับสนุน.
allCommentsPartsList<CommentsPartEntry>อ่านกลับทั้งหมด {@link CommentsPart} ตัวอย่างในทุกสไลด์ที่มีความคิดเห็นของผู้เขียนนี้.

วิธีการ

Signatureคําอธิบาย
CommentCollection(author: ICommentAuthor)สร้างการรวบรวมความคิดเห็นสําหรับผู้เขียนที่ให้.
initInternal(authorData: AuthorData, authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation)เริ่มการเก็บข้อมูลนี้ด้วยข้อมูลรองรับระดับแพ็คเกจ.
resolveSlide(partName: String)ISlideการคืน {@link ISlide} ที่ชื่อส่วนตรงกับชื่อ ส่วนที่ให้ไว้, หรือ { @code null}.
getAuthorObj()ICommentAuthorแก้ไขของเจ้าของ {@link ICommentAuthor} ของวัตถุจากข้อมูลผู้เขียนการสนับสนุน.
getAllCommentsParts()List<CommentsPartEntry>กลับทั้งหมด {@link CommentsPart} ตัวอย่างในทุกสไลด์ที่มีความคิดเห็นของผู้เขียนนี้.
getOrCreateCommentsPart(slidePartName: String)CommentsPartได้รับหรือสร้าง {@link CommentsPart} สําหรับชื่อส่วนของสไลด์ที่ให้.
buildComment(data: CommentData, cp: CommentsPart, slideObj: ISlide)Commentสร้าง {@link Comment} จากข้อมูลความคิดเห็นสด, ส่วนความคิดถึง และสไลด์ที่ไม่จําเป็น.
collectMyComments()List<MyCommentEntry>รวบรวมความเห็นทั้งหมดของผู้เขียนนี้ ผ่านทุกสไลด์ในแพ็คเกจ.
addComment(text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime)ICommentเพิ่มความคิดเห็นใหม่ด้วยข้อความ, ไส้แสดงภาพ, ตําแหน่งและเวลาสร้าง โดยคืน IComment
insertComment(index: int, text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime)ICommentการใส่ความคิดเห็นที่อัตรานิยมที่มีรายละเอียดกําหนด, ย้อนกลับ IComment
removeAt(index: int)ลบความคิดเห็นที่อัตราการแสดงตัวที่ระบุ
remove(comment: IComment)ลบ IComment ที่ระบุจากคอลเลกชั่น
clear()ลบความเห็นทั้งหมดจากสะสม
get(index: int)ICommentการคืน IComment ที่อินเด็กซ์ที่ให้ไว้
size()intการคืนจํานวนความคิดเห็นในคอลเลกชั่น
toArray()IComment[]การคืนการแสดงความเห็นของตารางส่วนเริ่มจาก startIndex โดยมีตัวเลขจํานวน
toArray(startIndex: int, count: int)IComment[]
asICollection()List<IComment>การคืนความคิดเห็นเป็นรายการ
asIEnumerable()Iterable<IComment>การคืนคําพูดเป็น Iterable
findCommentByIdx(idx: int)Optional<IComment>กลับ Optional ที่มีความคิดเห็นที่อัตรานิยมที่ถูกให้ ถ้ามี

ดูเช่นกัน

 ภาษาไทย