Ejemplo n.º 1
0
    private void method_21(Interface1 A_0, bool A_1)
    {
        RectangleF ef     = this.rectangleF_0;
        double     x      = this.rectangleF_0.X;
        double     y      = this.rectangleF_0.Y;
        double     width  = this.rectangleF_0.Width;
        double     height = this.rectangleF_0.Height;

        if (A_0 != null)
        {
            double num5 = 0.0;
            double num6 = 0.0;
            double num7 = 0.0;
            double num8 = 0.0;
            if (this.interface22_0 != null)
            {
                num5 = this.method_8().method_0() + this.method_9().method_0();
                num6 = this.method_8().method_4() + this.method_9().method_4();
                num7 = this.method_8().method_8() + this.method_9().method_8();
                num8 = this.method_9().method_12();
            }
            if (x < 0.0)
            {
                x = this.rectangleF_0.X;
            }
            if (((A_0 != null) && (A_0 is TableCell)) && A_0.imethod_0().imethod_30())
            {
                x      = this.rectangleF_0.X + num6;
                y      = this.rectangleF_0.Y + num5;
                width  = (this.rectangleF_0.Width - num6) - num8;
                height = (this.rectangleF_0.Height - num5) - num7;
            }
            else
            {
                x      = this.rectangleF_0.X + num5;
                y      = this.rectangleF_0.Y + num6;
                width  = (this.rectangleF_0.Width - num5) - num7;
                height = (this.rectangleF_0.Height - num6) - num8;
            }
            if ((A_0 is TableCell) || ((A_0 is Class65) && ((A_0 as Class65).method_2() is TableCell)))
            {
                TableCell cell = (A_0 is TableCell) ? (A_0 as TableCell) : ((!(A_0 is Class65) || !((A_0 as Class65).method_2() is TableCell)) ? null : ((A_0 as Class65).method_2() as TableCell));
                if ((cell != null) && (cell.OwnerRow.OwnerTable.TableFormat.CellSpacing > 0f))
                {
                    width += cell.OwnerRow.OwnerTable.TableFormat.CellSpacingEx * 2f;
                }
            }
            if (((A_0 is Paragraph) && (A_0 as Paragraph).IsInCell) && !(((A_0 as Paragraph).OwnerTextBody as TableCell).interface23_0 as Class211).method_107())
            {
                height -= this.method_8().method_12();
            }
            if (width < 0.0)
            {
                width = 0.0;
            }
            if (height < 0.0)
            {
                height = 0.0;
            }
            if (A_0 is Paragraph)
            {
                Class210   class2 = A_0.imethod_0() as Class210;
                RectangleF ef2    = class2.method_87();
                if (!ef2.IsEmpty || (ef2.Right > 0f))
                {
                    float num9 = ef2.Right - ((float)x);
                    x    += num9;
                    width = class2.method_89() - ef2.Right;
                    width = (width < 0.0) ? 0.0 : width;
                }
            }
        }
        if (!A_1)
        {
            this.rectangleF_1 = new RectangleF(new PointF((float)x, ef.Y), new SizeF((float)width, ef.Height));
        }
        else
        {
            this.rectangleF_1 = new RectangleF((float)x, (float)y, (float)width, (float)height);
        }
        this.method_1(this.rectangleF_1);
        if ((A_0 is Paragraph) || ((A_0 is Class65) && ((A_0 as Class65).method_2() is Paragraph)))
        {
            (A_0.imethod_0() as Class210).method_86(this.rectangleF_1);
        }
    }