private void method_2( Class471.Enum13 type, string position, double scaling, char decimalChar) { try { Class471 other = new Class471(type); other.Position = scaling * double.Parse(position, (IFormatProvider)CultureInfo.InvariantCulture); other.DecimalPointChar = decimalChar; Class471[] class471Array = new Class471[this.class471_0.Length + 1]; int index; for (index = 0; index < this.class471_0.Length && this.class471_0[index].CompareTo(other) <= 0; ++index) { class471Array[index] = this.class471_0[index]; } class471Array[index] = other; for (; index < this.class471_0.Length; ++index) { class471Array[index + 1] = this.class471_0[index]; } this.class471_0 = class471Array; } catch (FormatException ex) { } }
public override void imethod_0( ref Vector2D baselinePos, double height, Enum24 whiteSpaceHandlingFlags) { this.class471_0 = this.method_1(baselinePos, whiteSpaceHandlingFlags); baselinePos.X += this.double_0; base.imethod_0(ref baselinePos, height, whiteSpaceHandlingFlags); }
private Class471 method_1(Vector2D baselinePos, Enum24 whiteSpaceHandlingFlags) { this.double_0 = 0.0; double x = baselinePos.X; Class471[] tabulators = this.class1024_0.Tabulators; try { Bounds2D bounds = this.GetBounds(Enum24.flag_0, (Class985)null); int index = 0; double num1 = 1E-06 * this.Settings.Height; while ((index < tabulators.Length ? tabulators[index].Position : (double)(index + 1) * this.double_1) <= x + num1) { ++index; } Class471 class471 = index < tabulators.Length ? tabulators[index] : new Class471((double)(index + 1) * this.double_1); switch (class471.Type) { case Class471.Enum13.const_3: Vector2D?nullable = this.imethod_2(class471.DecimalPointChar, whiteSpaceHandlingFlags); this.double_0 = nullable.HasValue ? class471.Position - nullable.Value.X - x : class471.Position - x; break; case Class471.Enum13.const_1: double num2 = bounds.Initialized ? bounds.Center.X : 0.0; this.double_0 = class471.Position - x - num2; break; case Class471.Enum13.const_2: double num3 = bounds.Initialized ? bounds.Corner2.X : 0.0; this.double_0 = class471.Position - x - num3; break; case Class471.Enum13.const_0: this.double_0 = class471.Position - x; break; default: this.double_0 = 0.0; break; } if (this.double_0 < 0.0) { this.double_0 = 0.0; } return(class471); } catch (IndexOutOfRangeException ex) { } return((Class471)null); }