public Class1024(Class1023.Class1024 format) { this.double_0 = format.ParagraphWidth; this.enum45_0 = format.Alignment; this.bool_0 = format.bool_0; this.double_1 = format.double_1; this.double_2 = format.double_2; this.double_3 = format.double_3; this.double_4 = format.double_4; this.double_5 = format.double_5; this.class471_0 = format.class471_0; }
public Class1024(double paragraphWidth, AttachmentPoint attachmentPoint) { this.double_0 = paragraphWidth; switch (attachmentPoint) { case AttachmentPoint.TopCenter: case AttachmentPoint.MiddleCenter: case AttachmentPoint.BottomCenter: this.enum45_0 = Class1023.Enum45.const_0; break; case AttachmentPoint.TopRight: case AttachmentPoint.MiddleRight: case AttachmentPoint.BottomRight: this.enum45_0 = Class1023.Enum45.const_2; break; default: this.enum45_0 = Class1023.Enum45.const_1; break; } }
private void method_0(string format, double fontHeight) { if (format.Length <= 0) { return; } if (format[0] == 'x') { this.bool_0 = true; format = format.Substring(1); } double scaling = this.bool_0 ? fontHeight : 1.0; format += (string)(object)','; bool flag1 = false; bool flag2 = false; int length1; for (; format.Length > 0; format = format.Substring(length1 + 1)) { length1 = format.IndexOf(','); char c = format[0]; switch (c) { case 'D': if (!flag1) { this.class471_0 = Class1023.class471_0; flag1 = true; } char decimalChar = format[1]; if (decimalChar == ',') { length1 = format.IndexOf(',', length1 + 1); if (length1 == -1) { length1 = format.Length - 1; } } this.method_2(Class471.Enum13.const_3, format.Substring(2, length1 - 2), scaling, decimalChar); break; case 'a': try { this.double_5 = scaling * double.Parse(format.Substring(1, length1 - 1), (IFormatProvider)CultureInfo.InvariantCulture); break; } catch (FormatException ex) { break; } case 'b': try { this.double_4 = scaling * double.Parse(format.Substring(1, length1 - 1), (IFormatProvider)CultureInfo.InvariantCulture); break; } catch (FormatException ex) { break; } case 'c': if (!flag1) { this.class471_0 = Class1023.class471_0; flag1 = true; } this.method_1(Class471.Enum13.const_1, format.Substring(1, length1 - 1), scaling); break; case 'i': try { this.double_2 = scaling * double.Parse(format.Substring(1, length1 - 1), (IFormatProvider)CultureInfo.InvariantCulture); break; } catch (FormatException ex) { break; } case 'l': try { this.double_1 = scaling * double.Parse(format.Substring(1, length1 - 1), (IFormatProvider)CultureInfo.InvariantCulture); break; } catch (FormatException ex) { break; } case 'q': string str = format.Substring(1, length1 - 1); if (str.Length >= 1) { int length2 = str.Length; switch (str[0]) { case 'c': this.enum45_0 = Class1023.Enum45.const_0; continue; case 'd': this.enum45_0 = Class1023.Enum45.const_4; continue; case 'j': this.enum45_0 = Class1023.Enum45.const_3; continue; case 'l': this.enum45_0 = Class1023.Enum45.const_1; continue; case 'r': this.enum45_0 = Class1023.Enum45.const_2; continue; default: continue; } } else { break; } case 'r': if (!flag2) { flag2 = true; try { this.double_3 = scaling * double.Parse(format.Substring(1, length1 - 1), (IFormatProvider)CultureInfo.InvariantCulture); break; } catch (FormatException ex) { break; } } else { if (!flag1) { this.class471_0 = Class1023.class471_0; flag1 = true; } this.method_1(Class471.Enum13.const_2, format.Substring(1, length1 - 1), scaling); break; } case 't': string position = format.Substring(1, length1 - 1); if ("z" != position) { if (!flag1) { this.class471_0 = Class1023.class471_0; } flag1 = true; this.method_1(Class471.Enum13.const_0, position, scaling); break; } this.class471_0 = Class1023.class471_0; break; default: if (flag1 && char.IsDigit(c)) { this.method_1(Class471.Enum13.const_0, format.Substring(0, length1), scaling); break; } break; } } }
public Class1024(double paragraphWidth, Class1023.Enum45 alignment) { this.double_0 = paragraphWidth; this.enum45_0 = alignment; }