אוסף ההערות
סקירה
AnnotationCollection היא מחלקה ב‑Aspose.PDF FOSS עבור .NET.
יורשת מ: IReadOnlyList<Annotation>.
אוסף של הערות בדף.
מחלקה זו מספקת 35 שיטות לעבודה עם אובייקטים מסוג AnnotationCollection בתוכניות .NET.
השיטות הזמינות כוללות: Accept, Add, AddCaretAnnotation, AddCircleAnnotation, AddFileAttachmentAnnotation, AddFreeTextAnnotation, AddHighlightAnnotation, AddInkAnnotation, AddLineAnnotation, AddLinkAnnotation, AddPolyLineAnnotation, AddPolygonAnnotation, ו‑17 שיטות נוספות.
כל החברים הציבוריים נגישים לכל יישום .NET לאחר התקנת חבילת Aspose.PDF FOSS for .NET.
מאפיינים: Count, IsReadOnly, IsSynchronized, SyncRoot.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
Count | int | Read | מחזיר את הספירה. |
IsReadOnly | bool | Read | תמיד שקר: המתקשרים יכולים להוסיף ולהסיר הערות. |
IsSynchronized | bool | Read | תמיד שקר: המתקשרים מסדרים את הגישה שלהם באופן סדרתי. |
SyncRoot | object | Read | אובייקט סנטינל לנעילה בסגנון ICollection.SyncRoot. |
שיטות
| Signature | Description |
|---|---|
AddTextAnnotation(rect: Rectangle, contents: string, title: string?, open: bool) | הוסף הערת טקסט (פתק דביק). |
AddFreeTextAnnotation(rect: Rectangle, contents: string, fontName: string?, fontSize: double, color: double[]?) | הוסף הערת טקסט חופשי (טקסט שמוצג ישירות על העמוד). |
AddLinkAnnotation(rect: Rectangle, uri: string) | הוסף הערת קישור עם פעולה של URI. |
AddLinkAnnotation(rect: Rectangle, destinationPage: int, destRect: Rectangle) | הוסף הערת קישור עם יעד עמוד (לערכי תוכן עניינים). |
AddLinkAnnotation(rect: Rectangle, action: PdfAction) | הוסף הערת קישור עם פעולה מותאמת. |
AddHighlightAnnotation(rect: Rectangle, quadPoints: double[]?, color: double[]?) | הוסף הערת הדגשה. |
AddUnderlineAnnotation(rect: Rectangle, quadPoints: double[]?, color: double[]?) | הוסף הערת קו תחתי. |
AddStrikeOutAnnotation(rect: Rectangle, quadPoints: double[]?, color: double[]?) | הוסף הערת קו חוצה. |
AddSquareAnnotation(rect: Rectangle, borderColor: double[]?, fillColor: double[]?, lineWidth: double) | הוסף הערת ריבוע (מלבן). |
AddCircleAnnotation(rect: Rectangle, borderColor: double[]?, fillColor: double[]?, lineWidth: double) | הוסף הערת עיגול (אליפסה). |
AddLineAnnotation(rect: Rectangle, x1: double, y1: double, x2: double, y2: double, color: double[]?, lineWidth: double) | הוסף הערת קו. |
AddInkAnnotation(rect: Rectangle, inkPaths: double[][], color: double[]?, lineWidth: double) | הוסף הערת דיו (ציור יד חופשית). |
AddStampAnnotation(rect: Rectangle, contents: string, stampName: string) | הוסף הערת חותמת גומי. |
AddCaretAnnotation(rect: Rectangle, contents: string?) | הוסף הערת קרט (נקודת הוספה). |
AddRedactAnnotation(rect: Rectangle, color: double[]?, overlayText: string?) | הוסף הערת מחיקה. |
AddFileAttachmentAnnotation(rect: Rectangle, contents: string, fileName: string, fileData: byte[]) | הוסף הערת קובץ מצורף. |
AddSquigglyAnnotation(rect: Rectangle, quadPoints: double[]?, color: double[]?) | הוסף הערת קו תחתי משולף. |
AddPolygonAnnotation(rect: Rectangle, vertices: double[], borderColor: double[]?, fillColor: double[]?, lineWidth: double) | הוסף הערת פוליגון. |
AddPolyLineAnnotation(rect: Rectangle, vertices: double[], color: double[]?, lineWidth: double) | הוסף הערת קו מרובה קטעים. |
AddPopupAnnotation(rect: Rectangle, open: bool) | הוסף הערת פופאפ. |
AddWatermarkAnnotation(rect: Rectangle, contents: string?) | הוסף הערת סימן מים. |
Add(wa: WatermarkAnnotation) | הוסף אובייקט WatermarkAnnotation. |
Add(annotation: Annotation) | הוסף כל הערה שנוצרה באופן תכנותי. |
Add(annotation: Annotation, considerRotation: bool) | הוסף הערה, עם אפשרות ליישם את סיבוב העמוד על ערך /Rect של ההערה לפני ההוספה. |
Clear() | הסר את כל ההערות מהאוסף. |
Contains(annotation: Annotation) | אמת כאשר ההערה נמצאת כרגע באוסף (מתאימה לפי הפנייה, ואז לפי מילון הרקע). |
CopyTo(array: Annotation[], index: int) | העתק הערות למערך החל מאינדקס. |
Delete() | הסר את כל ההערות מהאוסף (כינוי ל‑Clear). |
Delete(index: int) | הסר את ההערה באינדקס המבוסס על 1 שניתן. |
FindByName(name: string) | מצא הערה שהערך /NM (שם ההערה) שלה תואם לשם. |
Remove(annotation: Annotation) | הסר את ההתאמה הראשונה של ההערה; מחזיר אמת כאשר הוסר ערך. |
Delete(annotation: Annotation) | הסר את ההערה הנתונה מהאוסף. |
RemoveAt(index: int) | הסר הערה באינדקס הנתון. |
GetEnumerator() | עבור על ההערות בצילום של הרשימה הבסיסית כך שהקוראים יכולים להסיר הערות (באמצעות Delete / RemoveAt) מתוך foreach מבלי להפעיל את מנגנון ההגנה על האוסף החי. |
Accept(visitor: AnnotationSelector) | עבור על כל הערה באוסף והפנה אותה למבקר. |