iTextSharp.text.pdf.events.FieldPositioningEvents.CellLayout C# (CSharp) Метод

CellLayout() публичный Метод

public CellLayout ( PdfPCell cell, Rectangle rect, PdfContentByte canvases ) : void
cell iTextSharp.text.pdf.PdfPCell
rect iTextSharp.text.Rectangle
canvases iTextSharp.text.pdf.PdfContentByte
Результат void
        public void CellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvases) {
            if (cellField == null || (fieldWriter == null && parent == null)) throw new ArgumentException("You have used the wrong constructor for this FieldPositioningEvents class.");
            cellField.Put(PdfName.RECT, new PdfRectangle(rect.GetLeft(padding), rect.GetBottom(padding), rect.GetRight(padding), rect.GetTop(padding)));
            if (parent == null)
                fieldWriter.AddAnnotation(cellField);
            else
                parent.AddKid(cellField);
        }
    }