CreateSquareCircle

PdfContentEditor.CreateSquareCircle method

Crée une annotation en cercle carré.

public void CreateSquareCircle(Rectangle rect, string contents, Color clr, bool square, int page, 
    int borderWidth)
ParamètreTaperLa description
rectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
contentsStringLe contenu de l’annotation.
clrColorLa couleur du carré ou du cercle.
squareBooleanVrai (carré), faux (cercle).
pageInt32Le numéro de la page d’origine où l’annotation sera créée.
borderWidthInt32La largeur de la bordure du carré ou du cercle.

Exemples

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");

Voir également