Beispiel #1
0
    internal void method_7()
    {
        int       num    = this.binaryReader_0.ReadByte();
        int       num2   = this.binaryReader_0.ReadByte();
        CellAlign align  = (CellAlign)this.binaryReader_0.ReadByte();
        Class15   class2 = smethod_2(this.binaryReader_0);

        if (class2.method_57())
        {
            num  = Math.Min(num, this.class732_0.Count);
            num2 = Math.Min(num2, this.class732_0.Count);
            int num3 = (int)class2.method_49();
            for (int i = num; i < num2; i++)
            {
                CellFormat format = this.class732_0.method_0(i);
                format.SamePaddingsAsTable = false;
                if ((align & CellAlign.Left) != CellAlign.None)
                {
                    format.SetAttr(0xc12, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Top) != CellAlign.None)
                {
                    format.SetAttr(0xbfe, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Bottom) != CellAlign.None)
                {
                    format.SetAttr(0xc08, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Right) != CellAlign.None)
                {
                    format.SetAttr(0xc1c, ((float)num3) / 20f);
                }
            }
        }
    }
Beispiel #2
0
    private void method_77(int A_0)
    {
        Class15 class2 = this.method_74();

        if (class2.method_57())
        {
            base.wordAttrCollection_0.SetAttr(A_0, class2.method_49() / 20f);
        }
    }
Beispiel #3
0
    private void method_72()
    {
        base.binaryReader_0.ReadByte();
        base.binaryReader_0.ReadByte();
        CellAlign align  = (CellAlign)base.binaryReader_0.ReadByte();
        Class15   class2 = this.method_74();

        if ((align == CellAlign.Box) && class2.method_57())
        {
            base.wordAttrCollection_0.SetAttr(0x10c2, class2.method_49() / 20f);
        }
    }
Beispiel #4
0
    private void method_73()
    {
        int num;

        base.binaryReader_0.ReadByte();
        base.binaryReader_0.ReadByte();
        CellAlign align  = (CellAlign)base.binaryReader_0.ReadByte();
        Class15   class2 = this.method_74();

        if (class2.method_57())
        {
            num = (int)class2.method_49();
        }
        else
        {
            align &= CellAlign.Right | CellAlign.Left;
            num    = 0;
        }
        if (base.method_54())
        {
            (base.wordAttrCollection_0 as CellFormat).Paddings.IsDefault = false;
        }
        else
        {
            (base.wordAttrCollection_0 as RowFormat).Paddings.IsDefault = false;
        }
        if ((align & CellAlign.Left) != CellAlign.None)
        {
            base.wordAttrCollection_0.SetAttr(base.method_54() ? 0xc12 : 0xfb4, ((float)num) / 20f);
        }
        if ((align & CellAlign.Top) != CellAlign.None)
        {
            base.wordAttrCollection_0.SetAttr(base.method_54() ? 0xbfe : 0x10cc, ((float)num) / 20f);
        }
        if ((align & CellAlign.Bottom) != CellAlign.None)
        {
            base.wordAttrCollection_0.SetAttr(base.method_54() ? 0xc08 : 0x10d6, ((float)num) / 20f);
        }
        if ((align & CellAlign.Right) != CellAlign.None)
        {
            base.wordAttrCollection_0.SetAttr(base.method_54() ? 0xc1c : 0x10e0, ((float)num) / 20f);
        }
    }