コード例 #1
0
        private void method_4(BodyRegion A_0)
        {
            ParagraphBase bookmarkStart = this.CurrentBookmark.BookmarkStart;

            if (bookmarkStart != null)
            {
                bool      flag           = false;
                int       num            = bookmarkStart.method_5();
                Paragraph ownerParagraph = bookmarkStart.OwnerParagraph;
                Paragraph paragraph2     = new Paragraph(ownerParagraph.Document);
                if (bookmarkStart.NextSibling == null)
                {
                    flag = true;
                }
                if ((A_0 is Paragraph) && (bookmarkStart.NextSibling == null))
                {
                    paragraph2 = A_0 as Paragraph;
                    flag       = false;
                }
                num++;
                TextBodyPart.smethod_0(ownerParagraph, num, paragraph2);
                int index = paragraph2.method_5();
                ownerParagraph.OwnerTextBody.Items.Insert(index, A_0);
                if (((flag && (paragraph2.Text == "")) && ((bookmarkStart.OwnerBase != null) && (bookmarkStart.OwnerBase.OwnerBase != null))) && (bookmarkStart.OwnerBase.OwnerBase is Body))
                {
                    int num3 = (bookmarkStart.OwnerBase.OwnerBase as Body).Paragraphs.IndexOf(paragraph2);
                    (bookmarkStart.OwnerBase.OwnerBase as Body).Paragraphs.RemoveAt(num3);
                }
            }
        }
コード例 #2
0
        public void PasteAfter(ParagraphBase paragraphItem)
        {
            BodyRegion owner     = paragraphItem.Owner as BodyRegion;
            int        itemIndex = owner.method_5();
            int        num2      = paragraphItem.method_5();

            this.PasteAt(owner.OwnerTextBody, itemIndex, num2 + 1);
        }
コード例 #3
0
        public TextBodySelection(ParagraphBase itemStart, ParagraphBase itemEnd)
        {
            int num = 7;

            this.int_0 = -1;
            this.int_1 = -1;
            this.int_2 = -1;
            this.int_3 = -1;
            this.int_4 = -1;
            this.int_5 = -1;
            Paragraph ownerParagraph = itemStart.OwnerParagraph;
            Paragraph paragraph2     = itemEnd.OwnerParagraph;

            if (ownerParagraph.Owner != paragraph2.Owner)
            {
                throw new ArgumentException(BookmarkStart.b("䐬嬮吰帲昴䌶堸䤺䤼Ἶ⁀ⵂ⅄杆⁈㽊⡌≎ᑐ㵒ㅔ睖㑘⹚⹜⭞䅠Ţd䝦੨Ѫͬ᭮ၰᩲ᭴ቶᵸ孺ᑼᅾꆀꦈハ뎒ﶘ", num));
            }
            this.body_0 = ownerParagraph.OwnerTextBody;
            this.int_0  = ownerParagraph.method_5();
            this.int_1  = paragraph2.method_5();
            this.int_2  = itemStart.method_5();
            this.int_3  = itemEnd.method_5();
            this.method_1();
        }