iTextSharp.text.pdf.ColumnText.SetSimpleVars C# (CSharp) Метод

SetSimpleVars() защищенный Метод

protected SetSimpleVars ( ColumnText org ) : void
org ColumnText
Результат void
    protected internal void SetSimpleVars(ColumnText org) {
        maxY = org.maxY;
        minY = org.minY;
        alignment = org.alignment;
        leftWall = null;
        if (org.leftWall != null)
            leftWall = new List<float[]>(org.leftWall);
        rightWall = null;
        if (org.rightWall != null)
            rightWall = new List<float[]>(org.rightWall);
        yLine = org.yLine;
        currentLeading = org.currentLeading;
        fixedLeading = org.fixedLeading;
        multipliedLeading = org.multipliedLeading;
        canvas = org.canvas;
        canvases = org.canvases;
        lineStatus = org.lineStatus;
        indent = org.indent;
        followingIndent = org.followingIndent;
        rightIndent = org.rightIndent;
        extraParagraphSpace = org.extraParagraphSpace;
        rectangularWidth = org.rectangularWidth;
        rectangularMode = org.rectangularMode;
        spaceCharRatio = org.spaceCharRatio;
        lastWasNewline = org.lastWasNewline;
        repeatFirstLineIndent = org.repeatFirstLineIndent;
        linesWritten = org.linesWritten;
        arabicOptions = org.arabicOptions;
        runDirection = org.runDirection;
        descender = org.descender;
        composite = org.composite;
        splittedRow = org.splittedRow;
        if (org.composite) {
            compositeElements = new List<IElement>();
            foreach (IElement compositeElement in org.compositeElements) {
                if (compositeElement is PdfPTable) {
                    compositeElements.Add(new PdfPTable((PdfPTable)compositeElement));
                } else {
                    compositeElements.Add(compositeElement);
                }   
            }
            if (org.compositeColumn != null)
                compositeColumn = Duplicate(org.compositeColumn);
        }
        listIdx = org.listIdx;
        rowIdx = org.rowIdx;
        firstLineY = org.firstLineY;
        leftX = org.leftX;
        rightX = org.rightX;
        firstLineYDone = org.firstLineYDone;
        waitPhrase = org.waitPhrase;
        useAscender = org.useAscender;
        filledWidth = org.filledWidth;
        adjustFirstLine = org.adjustFirstLine;
    }
    

Usage Example

Пример #1
0
 /// <summary>
 /// Copy the parameters from the specified ColumnText to use
 /// when rendering.  Parameters like  setArabicOptions
 /// must be set in this way.
 /// </summary>
 /// <param name="sourceColumn"></param>
 public void UseColumnParams(ColumnText sourceColumn)
 {
     // note that canvas will be overwritten later
     _columnText.SetSimpleVars(sourceColumn);
 }