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

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

public static CreateText ( PdfWriter writer, Rectangle rect, string title, string contents, bool open, string icon ) : PdfAnnotation
writer PdfWriter
rect iTextSharp.text.Rectangle
title string
contents string
open bool
icon string
Результат PdfAnnotation
        public static PdfAnnotation CreateText(PdfWriter writer, Rectangle rect, string title, string contents, bool open, string icon)
        {
            PdfAnnotation annot = new PdfAnnotation(writer, rect);
            annot.Put(PdfName.SUBTYPE, PdfName.TEXT);
            if (title != null)
                annot.Put(PdfName.T, new PdfString(title, PdfObject.TEXT_UNICODE));
            if (contents != null)
                annot.Put(PdfName.CONTENTS, new PdfString(contents, PdfObject.TEXT_UNICODE));
            if (open)
                annot.Put(PdfName.OPEN, PdfBoolean.PDFTRUE);
            if (icon != null) {
                annot.Put(PdfName.NAME, new PdfName(icon));
            }
            return annot;
        }