iTextSharp.text.Rectangle.CloneNonPositionParameters C# (CSharp) Метод

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

public CloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
Результат void
        public virtual void CloneNonPositionParameters(Rectangle rect)
        {
            this.rotation = rect.rotation;
            this.border = rect.border;
            this.borderWidth = rect.borderWidth;
            this.borderColor = rect.borderColor;
            this.backgroundColor = rect.backgroundColor;
            this.borderColorLeft = rect.borderColorLeft;
            this.borderColorRight = rect.borderColorRight;
            this.borderColorTop = rect.borderColorTop;
            this.borderColorBottom = rect.borderColorBottom;
            this.borderWidthLeft = rect.borderWidthLeft;
            this.borderWidthRight = rect.borderWidthRight;
            this.borderWidthTop = rect.borderWidthTop;
            this.borderWidthBottom = rect.borderWidthBottom;
            this.useVariableBorders = rect.useVariableBorders;
        }

Usage Example

Пример #1
0
        /**
         * @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
         */
        public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
        {
            float sp_left = spacing_left;

            if (float.IsNaN(sp_left))
            {
                sp_left = 0f;
            }
            float sp_right = spacing_right;

            if (float.IsNaN(sp_right))
            {
                sp_right = 0f;
            }
            float sp_top = spacing_top;

            if (float.IsNaN(sp_top))
            {
                sp_top = 0f;
            }
            float sp_bottom = spacing_bottom;

            if (float.IsNaN(sp_bottom))
            {
                sp_bottom = 0f;
            }
            Rectangle rect = new Rectangle(position.GetLeft(sp_left), position.GetBottom(sp_bottom), position.GetRight(sp_right), position.GetTop(sp_top));

            rect.CloneNonPositionParameters(this);
            canvases[PdfPTable.BACKGROUNDCANVAS].Rectangle(rect);
            rect.BackgroundColor = null;
            canvases[PdfPTable.LINECANVAS].Rectangle(rect);
        }
All Usage Examples Of iTextSharp.text.Rectangle::CloneNonPositionParameters