示例#1
0
    public Class542(Interface21 A_0, Class546 A_1, bool A_2)
    {
        string textToSplit = string.Empty;

        textToSplit        = (A_0 as TextRange).TextToSplit;
        this.interface21_0 = A_0;
        string str2 = A_2 ? textToSplit.Substring(0, A_1.method_1()) : textToSplit.Substring(A_1.method_0());

        this.string_0 = str2;
    }
示例#2
0
    public static Interface19[] smethod_1(Class196 A_0, double A_1, Interface21 A_2, Class546 A_3, float A_4, float A_5, bool A_6)
    {
        string textToSplit = string.Empty;

        textToSplit = (A_2 as TextRange).TextToSplit;
        if (A_3 == null)
        {
            A_3 = new Class546(0, textToSplit.Length - 1);
        }
        int num = A_2.imethod_8(A_0, A_1, A_3.method_7(textToSplit), textToSplit, A_4, A_5, A_6);

        if (num == -2147483648)
        {
            Interface19[] interfaceArray = new Interface19[2];
            interfaceArray[0] = new Class542(A_2, textToSplit.Substring(0, 1));
            string str2 = textToSplit.Substring(1);
            interfaceArray[1] = string.IsNullOrEmpty(str2) ? null : new Class542(A_2, str2);
            return(interfaceArray);
        }
        if ((num > -1) && (num < A_3.method_2()))
        {
            Interface19[] interfaceArray2 = new Interface19[2];
            if (textToSplit.Length == (A_2 as TextRange).Text.Length)
            {
                interfaceArray2[0] = new Class542(A_2, A_3.method_5(num), true);
                interfaceArray2[1] = new Class542(A_2, A_3.method_6(num), false);
            }
            else
            {
                interfaceArray2[0] = new Class542(A_2, textToSplit.Substring(0, num));
                interfaceArray2[1] = new Class542(A_2, textToSplit.Substring(num));
            }
            (A_2 as TextRange).TextToSplit = (A_2 as TextRange).TextToSplit.Remove(0, num);
            return(interfaceArray2);
        }
        Interface19[] interfaceArray3 = new Interface19[2];
        num = (num < 0) ? 0 : ((num == textToSplit.Length) ? (num - 1) : num);
        if (((num == 0) && (A_2 is TextRange)) && ((A_2 as TextRange).Document != null))
        {
            TextRange range = new TextRange((A_2 as TextRange).Document);
            range.method_0((A_2 as TextRange).Owner);
            range.CharacterFormat.Font     = (A_2 as TextRange).CharacterFormat.Font;
            range.CharacterFormat.FontSize = (A_2 as TextRange).CharacterFormat.FontSize;
            interfaceArray3[0]             = new Class542(range, string.Empty);
        }
        if (interfaceArray3[0] == null)
        {
            interfaceArray3[0] = new Class542(A_2, A_3.method_5(num), true);
        }
        interfaceArray3[1] = new Class542(A_2, A_3.method_6(num), false);
        return(interfaceArray3);
    }
示例#3
0
 public void method_4(Class546 A_0)
 {
     this.int_0 += A_0.method_0();
     this.int_1 += A_0.method_0();
 }
示例#4
0
 // Token: 0x0600347A RID: 13434
 // RVA: 0x00026873 File Offset: 0x00024A73
 public bool method_0(Class546 class546_0)
 {
     return class546_0.method_6() == this.int_0;
 }
示例#5
0
 // Token: 0x06003478 RID: 13432
 // RVA: 0x0002685E File Offset: 0x00024A5E
 public bool method_0(Class546 class546_1)
 {
     return class546_1.method_6() == this.class546_0.method_6();
 }