Inheritance: IAccessibleElement
Example #1
0
 private PdfPTableBody CloseTableBlock(PdfPTableBody block, PdfContentByte canvas) {
     if (canvas.writer.GetStandardStructElems().Contains(block.Role))
         canvas.CloseMCBlock(block);
     return null;
 }
Example #2
0
        /**
        * Copies the format of the sourceTable without copying the content. 
        * @param sourceTable
        * @since 2.1.6 private is now protected
        */

        virtual protected internal void CopyFormat(PdfPTable sourceTable)
        {
            relativeWidths = new float[sourceTable.NumberOfColumns];
            absoluteWidths = new float[sourceTable.NumberOfColumns];
            System.Array.Copy(sourceTable.relativeWidths, 0, relativeWidths, 0, NumberOfColumns);
            System.Array.Copy(sourceTable.absoluteWidths, 0, absoluteWidths, 0, NumberOfColumns);
            totalWidth = sourceTable.totalWidth;
            totalHeight = sourceTable.totalHeight;
            currentColIdx = 0;
            tableEvent = sourceTable.tableEvent;
            runDirection = sourceTable.runDirection;
            if (sourceTable.defaultCell is PdfPHeaderCell)
                defaultCell = new PdfPHeaderCell((PdfPHeaderCell)sourceTable.defaultCell);
            else
                defaultCell = new PdfPCell(sourceTable.defaultCell);
            currentRow = new PdfPCell[sourceTable.currentRow.Length];
            isColspan = sourceTable.isColspan;
            splitRows = sourceTable.splitRows;
            spacingAfter = sourceTable.spacingAfter;
            spacingBefore = sourceTable.spacingBefore;
            headerRows = sourceTable.headerRows;
            footerRows = sourceTable.footerRows;
            lockedWidth = sourceTable.lockedWidth;
            extendLastRow = sourceTable.extendLastRow;
            headersInEvent = sourceTable.headersInEvent;
            widthPercentage = sourceTable.widthPercentage;
            splitLate = sourceTable.splitLate;
            skipFirstHeader = sourceTable.skipFirstHeader;
            skipLastFooter = sourceTable.skipLastFooter;
            horizontalAlignment = sourceTable.horizontalAlignment;
            keepTogether = sourceTable.keepTogether;
            complete = sourceTable.complete;
            loopCheck = sourceTable.loopCheck;
            id = sourceTable.ID;
            role = sourceTable.Role;
            if (sourceTable.accessibleAttributes != null)
                accessibleAttributes = new Dictionary<PdfName, PdfObject>(sourceTable.accessibleAttributes);
            header = sourceTable.GetHeader();
            body = sourceTable.GetBody();
            footer = sourceTable.GetFooter();
        }
Example #3
0
 private PdfPTableBody OpenTableBlock(PdfPTableBody block, PdfContentByte canvas) {
     if (canvas.writer.GetStandardStructElems().Contains(block.Role)) {
         canvas.OpenMCBlock(block);
         return block;
     }
     return null;
 }
Example #4
0
 virtual public PdfPTableBody GetBody() {
     if (body == null)
         body = new PdfPTableBody();
     return body;
 }
Example #5
0
 private void WriteAttributes(PdfPTableBody body)
 {
     if (body != null)
     {
     }
 }
Example #6
0
        private void WriteAttributes(PdfPTableBody body)
        {
            if (body != null)
            {

            }
        }
Example #7
0
 private PdfPTableBody CloseTableBlock(PdfPTableBody block, PdfContentByte canvas) {
     canvas.CloseMCBlock(block);
     return null;
 }
Example #8
0
 private PdfPTableBody OpenTableBlock(PdfPTableBody block, PdfContentByte canvas) {
     canvas.OpenMCBlock(block);
     return block;
 }