internal void method_46(RowFormat A_0) { Class15 class2 = this.method_43(); Class15 tablePreferredWidthInfo = A_0.TablePreferredWidthInfo; switch (class2.method_51()) { case FtsWidth.None: tablePreferredWidthInfo.method_52(FtsWidth.None); tablePreferredWidthInfo.method_50(0f); return; case FtsWidth.Auto: tablePreferredWidthInfo.method_52(FtsWidth.Auto); tablePreferredWidthInfo.method_50(0f); return; case FtsWidth.Percentage: tablePreferredWidthInfo.method_52(FtsWidth.Percentage); tablePreferredWidthInfo.method_50(class2.method_49()); return; case FtsWidth.Point: tablePreferredWidthInfo.method_52(FtsWidth.Point); tablePreferredWidthInfo.method_50(class2.method_49()); return; } }
private void method_78(int A_0) { Class15 class2 = base.wordAttrCollection_0.method_32(A_0) as Class15; class2.method_52((FtsWidth)base.binaryReader_0.ReadByte()); class2.method_50((float)base.binaryReader_0.ReadInt16()); }
private void method_75(Class15 A_0) { Class15 class2 = A_0; FtsWidth width = (FtsWidth)base.binaryReader_0.ReadByte(); class2.method_52(width); class2.method_50((width != FtsWidth.Percentage) ? ((float)base.binaryReader_0.ReadInt16()) : (((float)base.binaryReader_0.ReadInt16()) / 50f)); }
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); } }
private static void smethod_1(Class15 A_0, PreferredWidth A_1) { Class15 class2 = A_0; FtsWidth auto = FtsWidth.Auto; switch (A_1.Type) { case WidthType.Percentage: auto = FtsWidth.Percentage; break; case WidthType.Twip: auto = FtsWidth.Point; break; } class2.method_52(auto); class2.method_50((float)A_1.Value); }