Пример #1
0
    private static void smethod_3(Table A_0)
    {
        TableRow row = A_0.Rows[0];
        int      num = (int)row.RowFormat.method_31(0x13ee);

        foreach (TableRow row3 in A_0.Rows)
        {
            int num5 = (int)row3.RowFormat.method_31(0x13ee);
            if (num5 < num)
            {
                num = num5;
                row = row3;
            }
        }
        int num6 = (int)((((row.Cells[0] == null) || !row.Cells[0].CellFormat.HasKey(0xc12)) ? row.RowFormat.Paddings.Left : row.Cells[0].CellFormat.Paddings.Left) * 20f);
        int num2 = num6 + ((int)row.RowFormat.method_31(0x13ee));

        foreach (TableRow row2 in A_0.Rows)
        {
            RowFormat rowFormat = row2.RowFormat;
            int       num4      = ((int)rowFormat.method_31(0x13ee)) - num;
            if (num4 != 0)
            {
                rowFormat.GridBeforeWidth.method_50((float)num4);
            }
            int num3 = (int)Math.Round((double)(rowFormat.LeftIndent * 20f));
            if (((num2 != 0) && (num != 0)) && (!rowFormat.method_6(0x10f4) || (rowFormat.method_6(0x13ee) && (Class59.smethod_4((float)num3, (float)num2, 0.001f) != 0))))
            {
                rowFormat.LeftIndent = ((float)num2) / 20f;
            }
            rowFormat.Remove(0x13ee);
        }
    }
Пример #2
0
    internal static void smethod_2(RowFormat A_0)
    {
        object right = A_0.method_31(0x13ed);

        if (right == null)
        {
            return;
        }
        if (A_0.method_31(0xfaa) != null)
        {
            goto Label_0069;
        }
        if (A_0.Bidi)
        {
            switch (((RowAlignment)right))
            {
            case RowAlignment.Left:
                right = RowAlignment.Right;
                goto Label_005D;

            case RowAlignment.Right:
                right = RowAlignment.Left;
                goto Label_005D;
            }
            right = (RowAlignment)right;
        }
Label_005D:
        A_0.SetAttr(0xfaa, right);
Label_0069:
        A_0.Remove(0x13ed);
    }
Пример #3
0
 private void method_29(int A_0, int A_1)
 {
     foreach (TableRow row in base.Document.GetChildElements(DocumentObjectType.TableRow, true))
     {
         RowFormat rowFormat = row.RowFormat;
         if (rowFormat.Istd == A_0)
         {
             if (A_1 == -1)
             {
                 rowFormat.Remove(50);
             }
             else
             {
                 rowFormat[50] = A_1;
             }
         }
     }
 }