private void imethod_2(SprmCode A_0, int A_1, int A_2, CellAlign A_3, object A_4) { int num = 0x10; SprmCode code = A_0; if (code <= SprmCode.TSetBrc) { if (code > SprmCode.TTextFlow) { if (code == SprmCode.TVertAlign) { VerticalAlignment alignment = (VerticalAlignment)A_4; if (alignment != VerticalAlignment.Top) { this.class345_0.method_5(SprmCode.TVertAlign); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)alignment); return; } return; } if (code == SprmCode.TSetBrc) { this.method_27(A_1, A_2, (Border)A_4, A_3, SprmCode.TSetBrc); return; } } else { if (code == SprmCode.TDxaCol) { int num2 = (int)Math.Round((double)(float.Parse(A_4.ToString()) * 20f)); this.class345_0.method_5(SprmCode.TDxaCol); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((short)num2); return; } if (code == SprmCode.TTextFlow) { TextDirection direction = (TextDirection)A_4; if (direction != TextDirection.TopToBottom) { this.class345_0.method_5(SprmCode.TTextFlow); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((ushort)direction); return; } return; } } } else if (code > SprmCode.TCellWidth) { switch (code) { case SprmCode.TFCellNoWrap: if (!((bool)A_4)) { this.class345_0.method_5(SprmCode.TFCellNoWrap); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); return; } return; case SprmCode.TCellHideMark: if ((bool)A_4) { this.class345_0.method_5(SprmCode.TCellHideMark); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); } return; case SprmCode.TFitText: if ((bool)A_4) { this.class345_0.method_5(SprmCode.TFitText); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); } return; } } else { if (code == SprmCode.TCellPadding) { Class354.smethod_5(this.class345_0, SprmCode.TCellPadding, A_1, A_2, A_3, A_4); return; } if (code == SprmCode.TCellWidth) { Class15 class2 = new Class15(FtsWidth.None, 0); switch (this.class732_0.method_0(A_1).WidthUnit) { case FtsWidth.Auto: class2 = new Class15(FtsWidth.Auto, 0); break; case FtsWidth.Percentage: class2 = new Class15(FtsWidth.Percentage, (short)Math.Round((double)(this.class732_0.method_0(A_1).CellWidth * 50f))); break; case FtsWidth.Point: class2 = new Class15(FtsWidth.Point, (short)Math.Round((double)(this.class732_0.method_0(A_1).CellWidth * 20f))); break; } this.method_23(A_1, A_2, (int)class2.method_51(), (int)class2.method_49()); class2.Close(); class2 = null; return; } } throw new InvalidOperationException(string.Format(BookmarkStart.b("砵圷丹᰻圽ⴿ㉁⡃⍅╇⽉≋㩍㕏㙑瑓さ㝗⡙籛╝偟ὡ䑣ၥ१٩ᥫ୭幯", num), A_0)); }