Skip to main content
All docs
V23.2

PdfPageFacade.AddCircleAnnotation(PdfRectangle) Method

Creates a circle annotation in the specified page rectangle.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v23.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

Declaration

public PdfCircleAnnotationFacade AddCircleAnnotation(
    PdfRectangle rect
)

Parameters

Name Type Description
rect PdfRectangle

The page area to create the circle annotation.

Returns

Type Description
PdfCircleAnnotationFacade

An object that contains circle annotation properties.

Example

The code sample below creates a circle annotation:

circle annotation

using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
{
    // Load a document
    processor.LoadDocument("..\\..\\Document.pdf");

    // Access the first page properties
    PdfPageFacade pageFacade = processor.DocumentFacade.Pages[0];

    // Define an annotation area
    PdfRectangle rectangle = new PdfRectangle(663, 526, 763, 576);

    // Create a circle annotation
    PdfCircleAnnotationFacade circleAnnotation = pageFacade.AddCircleAnnotation(rectangle);

    // Specify annotation parameters
    circleAnnotation.Author = "Nancy Davolio";
    circleAnnotation.Contents = "Made in PDF Document API";

    // Save the result
    processor.SaveDocument("..\\..\\Result.pdf");
}
See Also