示例#1
0
        public Interface24[] imethod_1(double width, Interface25 breaker)
        {
            Interface0 metrics = this.Settings.Font.Metrics;
            double     num     = width - this.Offset.X;

            if (metrics.GetBounds(this.Text, Enum24.flag_0).Corner2.X <= num)
            {
                return new Interface24[1] {
                           (Interface24)this
                }
            }
            ;
            int position = -1;
            Pair <string, string> pair1 = (Pair <string, string>)null;
            Pair <string, string> pair2;

            do
            {
                pair2 = pair1;

                pair1 = breaker.imethod_1(this.Text, ref position);
            }while (position >= 0 && metrics.GetBounds(pair1.First, Enum24.flag_0).Corner2.X <= num);
            if (pair2 == null)
            {
                if (pair1 == null)
                {
                    return(Class470.interface24_0);
                }
                pair2 = pair1;
            }
            return(new Interface24[2] {
                (Interface24) new Class470(pair2.First, this.Settings)
                {
                    Offset = this.Offset
                }, (Interface24) new Class470(pair2.Second, this.Settings)
            });
        }
示例#2
0
文件: Class1023.cs 项目: 15831944/WW
 public Interface24[] imethod_1(double width, Interface25 breaker)
 {
     return(Class470.interface24_0);
 }
示例#3
0
文件: Class425.cs 项目: 15831944/WW
        public virtual Interface24[] imethod_1(double width, Interface25 breaker)
        {
            if (this.GetBounds(Enum24.flag_1, (Class985)null).Corner2.X > width)
            {
                Class425 class425_1 = this.vmethod_0(true);
                class425_1.Offset = this.Offset;
                using (LinkedList <Interface24> .Enumerator enumerator = this.linkedList_0.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        Interface24 current = enumerator.Current;
                        if (current.Breakable)
                        {
                            Interface24[] nterface24Array = current.imethod_1(width, breaker);
                            switch (nterface24Array.Length)
                            {
                            case 0:
                                if (class425_1.linkedList_0.Count <= 0)
                                {
                                    return(Class470.interface24_0);
                                }
                                Class425 class425_2 = this.vmethod_0(false);
                                class425_2.method_0(current);
                                while (enumerator.MoveNext())
                                {
                                    class425_2.method_0(enumerator.Current);
                                }
                                return(new Interface24[2] {
                                    (Interface24)class425_1, (Interface24)class425_2
                                });

                            case 1:
                                class425_1.method_0(current);
                                continue;

                            case 2:
                                class425_1.method_0(nterface24Array[0]);
                                Class425 class425_3 = this.vmethod_0(false);
                                class425_3.method_0(nterface24Array[1]);
                                while (enumerator.MoveNext())
                                {
                                    class425_3.method_0(enumerator.Current);
                                }
                                return(new Interface24[2] {
                                    (Interface24)class425_1, (Interface24)class425_3
                                });

                            default:
                                continue;
                            }
                        }
                        else if (current.GetBounds(Enum24.flag_1, (Class985)null).Corner2.X <= width)
                        {
                            class425_1.method_0(current);
                        }
                        else
                        {
                            if (class425_1.linkedList_0.Count <= 0)
                            {
                                return(Class470.interface24_0);
                            }
                            Class425 class425_2 = this.vmethod_0(false);
                            class425_2.method_0(current);
                            while (enumerator.MoveNext())
                            {
                                class425_2.method_0(enumerator.Current);
                            }
                            return(new Interface24[2] {
                                (Interface24)class425_1, (Interface24)class425_2
                            });
                        }
                    }
                }
                return(Class470.interface24_0);
            }
            return(new Interface24[1] {
                (Interface24)this
            });
        }
示例#4
0
 public void imethod_13(Interface25 interface25_1)
 {
     this.interface25_0 = interface25_1;
 }