AnnotationCollection
概要
AnnotationCollection は Aspose.PDF の FOSS における .NET 用のクラスです。継承元: IReadOnlyList<Annotation>。
ページ上のアノテーションのコレクション。
このクラスは、.NET プログラムにおける AnnotationCollection オブジェクトを操作するための 35 のメソッドを提供します。利用可能なメソッドは Accept、Add、AddCaretAnnotation、AddCircleAnnotation、AddFileAttachmentAnnotation、AddFreeTextAnnotation、AddHighlightAnnotation、AddInkAnnotation、AddLineAnnotation、AddLinkAnnotation、AddPolyLineAnnotation、AddPolygonAnnotation、および追加の 17 メソッドです。すべての公開メンバーは、Aspose.PDF の .NET 用 FOSS パッケージをインストールした後、任意の .NET アプリケーションから利用可能です。プロパティ: Count、IsReadOnly、IsSynchronized、SyncRoot。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
Count | int | 読み取り | カウントを取得します。 |
IsReadOnly | bool | 読み取り | 常に偽: 呼び出し元はアノテーションを追加したり削除したりできる。 |
IsSynchronized | bool | 読み取り | 常に偽: 呼び出し元は自分のアクセスをシリアライズする。 |
SyncRoot | object | 読み取り | ICollection.SyncRoot スタイルのロック用センチネルオブジェクト。 |
メソッド
| シグネチャ | 説明 |
|---|---|
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) | アノテーションを追加する。 |
Clear() | コレクションからすべてのアノテーションを削除する。 |
Contains(annotation: Annotation) | アノテーションが現在コレクションに含まれている場合は true(参照で一致し、次にバックイング辞書で一致)。 |
CopyTo(array: Annotation[], index: int) | インデックスから始めて、配列にアノテーションをコピーする。 |
Delete() | コレクションからすべてのアノテーションを削除します(public-API は Clear のエイリアスです;API の互換性のために残しています)。 |
Delete(index: int) | 指定された 1 ベースのインデックスのアノテーションを削除します。 |
FindByName(name: string) | /NM(アノテーション名)エントリが name と一致するアノテーションを検索します。 |
Remove(annotation: Annotation) | 最初に一致したアノテーションを削除します。アノテーションが削除された場合は true を返します。 |
Delete(annotation: Annotation) | 指定されたアノテーションをコレクションから削除します。 |
RemoveAt(index: int) | 指定されたインデックスのアノテーションを削除します。 |
GetEnumerator() | 基になるリストのスナップショット上でアノテーションを反復処理し、呼び出し元が foreach の内部からアノテーションを削除(Delete / RemoveAt を使用)できるようにし、ライブコレクションガードが作動しないようにします。 |
Accept(visitor: AnnotationSelector) | コレクション内のすべてのアノテーションを走査し、ビジターへディスパッチします。 |