AnnotationCollection

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 FOSS for .NET 패키지를 설치한 후 모든 .NET 애플리케이션에서 공개 멤버에 접근할 수 있습니다. 속성: Count, IsReadOnly, IsSynchronized, SyncRoot.

속성

이름유형액세스설명
Countint읽기카운트를 가져옵니다.
IsReadOnlybool읽기항상 false: 호출자는 주석을 추가하고 제거할 수 있습니다.
IsSynchronizedbool읽기항상 false: 호출자는 자체 접근을 직렬화합니다.
SyncRootobject읽기ICollection.SyncRoot-스타일 잠금을 위한 Sentinel 객체.

메서드

시그니처설명
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 (참조로 먼저 일치하고, 그 다음 백업 dict와 일치).
CopyTo(array: Annotation[], index: int)인덱스부터 배열에 주석을 복사합니다.
Delete()컬렉션에서 모든 주석을 제거합니다 (public-API은 Clear의 별칭; API 호환성을 위해 유지).
Delete(index: int)주어진 1 기반 인덱스에 있는 주석을 제거합니다.
FindByName(name: string)/NM (annotation name) 항목이 name과 일치하는 주석을 찾습니다.
Remove(annotation: Annotation)첫 번째 일치하는 주석을 제거합니다; 주석이 제거되면 true를 반환합니다.
Delete(annotation: Annotation)주어진 주석을 컬렉션에서 제거합니다.
RemoveAt(index: int)주어진 인덱스에 있는 주석을 제거합니다.
GetEnumerator()기저 리스트의 스냅샷에서 주석들을 순회하여, 호출자가 foreach 내부에서 주석을 (Delete / RemoveAt) 제거하더라도 실시간 컬렉션 가드가 작동하지 않도록 합니다.
Accept(visitor: AnnotationSelector)컬렉션의 모든 주석을 순회하여 방문자에게 전달합니다.

참조

 한국어