iTextSharp.text.pdf.PdfAnnotation.CreateFreeText C# (CSharp) Метод

CreateFreeText() публичный статический Метод

public static CreateFreeText ( PdfWriter writer, Rectangle rect, string contents, PdfContentByte defaultAppearance ) : PdfAnnotation
writer PdfWriter
rect iTextSharp.text.Rectangle
contents string
defaultAppearance PdfContentByte
Результат PdfAnnotation
        public static PdfAnnotation CreateFreeText(PdfWriter writer, Rectangle rect, string contents, PdfContentByte defaultAppearance)
        {
            PdfAnnotation annot = new PdfAnnotation(writer, rect);
            annot.Put(PdfName.SUBTYPE, PdfName.FREETEXT);
            annot.Put(PdfName.CONTENTS, new PdfString(contents, PdfObject.TEXT_UNICODE));
            annot.DefaultAppearanceString = defaultAppearance;
            return annot;
        }