private static void smethod_5(TableRow A_0, bool A_1, bool A_2, bool A_3, int A_4) { RowFormat format = smethod_6(A_0.RowFormat, A_1); ArrayList list = (ArrayList)smethod_6(A_0.ParentTable.TableFormat, A_1).method_31(0x13ef); int num = (int)format.method_32(0x13f0); if (list.Count > 0) { int num2 = num; foreach (TableCell cell in A_0.Cells) { int num4 = 0; CellFormat cellFormat = cell.CellFormat; short num5 = (short)smethod_7(cellFormat, A_1).method_32(0xf3c); int num3 = Math.Min(num2 + num5, list.Count); while (num2 < num3) { num4 += Convert.ToInt32(list[num2++]); } if (num4 != 0) { if (A_1) { if (A_2) { if (A_3) { cellFormat.RevisedPr.CellWidth = (((float)num4) / ((float)A_4)) * 100f; cellFormat.RevisedPr.WidthUnit = FtsWidth.Percentage; } else { cellFormat.RevisedPr.CellWidth = ((float)num4) / 20f; cellFormat.RevisedPr.WidthUnit = FtsWidth.Point; } } cellFormat.RevisedPr.TwipCellWidth = num4; } else if (cellFormat.HasFormatRevision) { if (A_2) { if (A_3) { cell.SetCellWidth((((float)num4) / ((float)A_4)) * 100f, CellWidthType.Percentage); } else { cell.SetCellWidth(((float)num4) / 20f, CellWidthType.Point); } } cellFormat.TwipCellWidth = num4; } } } } }
private static void smethod_8(ArrayList A_0, RowFormat A_1, TableRow A_2, bool A_3, bool A_4, int A_5) { int num = (int)A_1.method_32(0x13f0); int num2 = 0; for (int i = 0; i < num; i++) { num2 += (int)A_0[i]; } RowFormat format = (!A_2.RowFormat.HasFormatRevision || !A_3) ? A_2.RowFormat : ((RowFormat)A_2.RowFormat.FormatRevision.method_4()); Class15 class2 = (Class15)format.method_31(0x109a); if (A_4) { class2.method_50((((float)num2) / ((float)A_5)) * 50f); class2.method_52(FtsWidth.Percentage); } else { class2.method_50((float)num2); class2.method_52(FtsWidth.Point); } }