コード例 #1
0
    private Struct11 method_19(Struct11 A_0, bool A_1)
    {
        string str   = A_0.string_0;
        float  num   = A_0.float_0;
        bool   flag  = (A_0.textLineType_0 & TextLineType.FirstParagraphLine) == TextLineType.None;
        bool   flag2 = (this.stringFormat_0 == null) || (this.stringFormat_0.FormatFlags != StringFormatFlags.DirectionRightToLeft);

        char[] trimChars = Class543.char_3;
        if (flag)
        {
            str = flag2 ? str.TrimStart(trimChars) : str.TrimEnd(trimChars);
        }
        if ((this.stringFormat_0 == null) || (this.stringFormat_0.FormatFlags != StringFormatFlags.MeasureTrailingSpaces))
        {
            if (((A_0.textLineType_0 & TextLineType.FirstParagraphLine) > TextLineType.None) && Class543.smethod_2(str))
            {
                str = new string(' ', 1);
            }
            else
            {
                str = flag2 ? str.TrimEnd(trimChars) : str.TrimStart(trimChars);
            }
        }
        if (str.Length != A_0.string_0.Length)
        {
            num = this.method_20(str);
            if ((A_0.textLineType_0 & TextLineType.FirstParagraphLine) > TextLineType.None)
            {
                num += this.method_21(A_1);
            }
        }
        A_0.string_0 = str;
        A_0.float_0  = num;
        return(A_0);
    }
コード例 #2
0
    private void method_18(Class545 A_0, List <Struct11> A_1, string A_2, float A_3, TextLineType A_4)
    {
        int num = 10;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("尯嬱娳匵樷弹伻䬽ⰿ㙁", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("尯嬱娳匵䬷", num));
        }
        if (A_2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("尯嬱娳匵", num));
        }
        Struct11 item = new Struct11 {
            string_0       = A_2,
            float_0        = A_3,
            textLineType_0 = A_4
        };

        A_1.Add(item);
        SizeF ef = A_0.sizeF_0;

        ef.Height  += this.method_14();
        ef.Width    = Math.Max(ef.Width, A_3);
        A_0.sizeF_0 = ef;
    }
コード例 #3
0
ファイル: Class173.cs プロジェクト: no1mann/Open-GHTCP
        public override void vmethod_0(Class13 class13_0)
        {
            Struct11 @struct = new Struct11(class13_0.int_0 + class13_0.method_0(), class13_0.int_0 + class13_0.method_0() + class13_0.method_2());

            if (this.struct11_0.Length != 0)
            {
                Struct11[] array = this.struct11_0;
                for (int i = 0; i < array.Length; i++)
                {
                    Struct11 struct2 = array[i];
                    Struct11 struct3 = struct2.method_0(@struct);
                    if (!struct3.method_1())
                    {
                        this.method_1(ref class13_0.float_0, struct3.method_2() - class13_0.int_0, struct3.method_3(), struct3.method_2() - struct2.method_2(), (float)struct2.method_3());
                    }
                }
                return;
            }
            this.method_1(ref class13_0.float_0, class13_0.method_0(), class13_0.method_2(), 0, (float)class13_0.method_2());
        }
コード例 #4
0
        public override void vmethod_0(Class13 class130)
        {
            var @struct = new Struct11(class130.Int0 + class130.method_0(),
                                       class130.Int0 + class130.method_0() + class130.method_2());

            if (_struct110.Length != 0)
            {
                var array = _struct110;
                for (var i = 0; i < array.Length; i++)
                {
                    var struct2 = array[i];
                    var struct3 = struct2.method_0(@struct);
                    if (!struct3.method_1())
                    {
                        method_1(ref class130.Float0, struct3.method_2() - class130.Int0, struct3.method_3(),
                                 struct3.method_2() - struct2.method_2(), struct2.method_3());
                    }
                }
                return;
            }
            method_1(ref class130.Float0, class130.method_0(), class130.method_2(), 0, class130.method_2());
        }
コード例 #5
0
    private bool method_11(Class545 A_0, Class545 A_1, List <Struct11> A_2, out int A_3)
    {
        int num = 8;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("尭唯䄱䄳娵䰷", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䈭夯就儳搵崷䤹䤻刽㐿", num));
        }
        if (A_2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䈭夯就儳䔵", num));
        }
        bool  flag2  = true;
        bool  flag   = (this.stringFormat_0 != null) && (this.stringFormat_0.FormatFlags != StringFormatFlags.LineLimit);
        float height = A_0.sizeF_0.Height;
        float num4   = this.sizeF_0.Height;

        A_3 = 0;
        if (A_1.struct11_0 != null)
        {
            int index  = 0;
            int length = A_1.struct11_0.Length;
            while (index < length)
            {
                float num3 = height + A_1.float_0;
                if (((num3 > num4) && (num4 > 0f)) && !flag)
                {
                    flag2 = false;
                    break;
                }
                Struct11 struct2 = A_1.struct11_0[index];
                A_3    += struct2.string_0.Length;
                struct2 = this.method_19(struct2, A_2.Count == 0);
                A_2.Add(struct2);
                SizeF ef = A_0.sizeF_0;
                ef.Width    = Math.Max(ef.Width, struct2.float_0);
                A_0.sizeF_0 = ef;
                if (((num3 >= num4) && (num4 > 0f)) && flag)
                {
                    if ((this.stringFormat_0 == null) || (this.stringFormat_0.FormatFlags != StringFormatFlags.NoClip))
                    {
                        float num5 = num3 - num4;
                        float num6 = A_1.float_0 - num5;
                        height += num6;
                    }
                    else
                    {
                        height = num3;
                    }
                    flag2 = false;
                    break;
                }
                height = num3;
                index++;
            }
        }
        if (height != A_0.sizeF_0.Height)
        {
            SizeF ef2 = A_0.sizeF_0;
            ef2.Height  = height;
            A_0.sizeF_0 = ef2;
        }
        return(flag2);
    }