CommentCollection
סקירה כללית
CommentCollection הוא שיעור ב Aspose.Slides FOSS עבור Java. מורשת מ : ICommentCollection.
הוא מייצג אוסף של הערות של אחד המחברים.
שיעור זה מספק 20 שיטות לעבוד עם אובייקטים CommentCollection בתוכניות Java. שיטות זמינות כוללות: CommentCollection, addComment, asICollection, asIEnumerable, buildComment, clear, collectMyComments, findCommentByIdx, get, getAllCommentsParts, getAuthorObj, getOrCreateCommentsPart,7 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום Java לאחר התקנת Aspose.Slides FOSS עבור חבילת Java. רכוש : allCommentsParts, authorObj.
נכסים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
authorObj | ICommentAuthor | קראו | פותר את האובייקט העומד {@link ICommentAuthor} מהנתונים של המחבר התמיכה. |
allCommentsParts | List<CommentsPartEntry> | קראו | החזיר את כל {@link CommentsPart} דוגמאות בכל ה-slides המכילים |
| הערות של המחבר הזה. |
שיטות
| חתימה | תיאור |
|---|---|
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} דוגמאות בכל ה-slides המכילים |
| הערות של המחבר הזה. | |
getOrCreateCommentsPart(slidePartName: String) → CommentsPart | מקבל או יוצר את {@link CommentsPart} עבור שם החלק של הכתובת. |
buildComment(data: CommentData, cp: CommentsPart, slideObj: ISlide) → Comment | בניית {@link Comment} מתוך נתוני הערות ירוקות, חלק הערה, ו- slide אופציונלי. |
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> | החזיר את ההערות כבלתי אפשרית |
findCommentByIdx(idx: int) → Optional<IComment> | החזיר הערה אופציונלית המכילה את ההערה על האינדקס, אם קיימת |