CommentCollection
סקירה כללית
CommentCollection הוא שיעור ב Aspose.Slides FOSS עבור C++.
הוא מנהל אוסף של הערות שייכות לסופר יחיד.
שיעור זה מספק 16 שיטות לעבוד עם אובייקטים CommentCollection בתוכניות C++. שיטות זמינות כוללות: CommentCollection, ICommentCollection, add_comment, as_i_collection, as_i_enumerable, clear, find_comment_by_idx, insert_comment, remove, remove_at, remove_comment, size,ועוד 1 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום C++ לאחר התקנת Aspose.Slides FOSS עבור חבילת C+. רכוש : CommentCollection, ICommentCollection.
נכסים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
CommentCollection | CommentCollection | קראו | קבל את אוסף ההערות. |
ICommentCollection | ICommentCollection | קראו | קבל את הקולקציה של הערות. |
שיטות
| חתימה | תיאור |
|---|---|
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*> | החזיר ויקטור של אינטר לא מחזיק לכל ההערות. |
to_array(start: std::size_t, count: std::size_t) → std::vector<Comment*> | החזיר ויקטור של אינטר לא מחזיק לכל ההערות. |
find_comment_by_idx(idx: std::uint32_t) → Comment | מצא הערה על ידי אינדיקטור היחיד שלה לפי מחבר, או nullptr אם לא נמצא. |
as_i_collection() → ICommentCollection | החזיר התייחסות לאוסף זה כאינטראקציה של אוסף גנרלי. |
as_i_enumerable() → ICommentCollection | החזיר התייחסות לאוסף זה כאינטראקציה כללית. |
remove_comment(comment: Comment) | הסרת הערה ספציפית על ידי מדריך (שימוש פנימי על-ידי Comment::remove). |