PdfContentEditor.CreateSquareCircle

PdfContentEditor.CreateSquareCircle method

Creates square-circle annotation.

public void CreateSquareCircle(Rectangle rect, string contents, Color clr, bool square, int page, 
    int borderWidth)
ParameterTypeDescription
rectRectangleThe annotation rectangle defining the location of the annotation on the page.
contentsStringThe contents of the annotation.
clrColorThe colour of square or circle.
squareBooleanTrue (square), false (sircle).
pageInt32The number of original page where the annotation will be created.
borderWidthInt32The border width of square or circle.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateSquareCircle(new System.Drawing.Rectangle(0, 0, 100, 100),
    "Welcome to Aspose", System.Drawing.Color.Red, false, 1, 5);
editor.Save("example_out.pdf");

See Also