Example #1
0
        public void TextEinfuegen(string text, XMLRegelwerk regelwerk)
        {
            XMLCursor xmlCursor = this.Clone();

            xmlCursor.SelektionOptimieren();
            XMLCursorPos neueCursorPosNachLoeschen;
            XMLCursorPos xmlCursorPos = !xmlCursor.SelektionLoeschen(out neueCursorPosNachLoeschen) ? this.StartPos.Clone() : neueCursorPosNachLoeschen;
            XmlNode      ersatzNode   = (XmlNode)null;

            xmlCursorPos.TextEinfuegen(text, regelwerk, out ersatzNode);
            if (ersatzNode != null)
            {
                xmlCursorPos.InsertXMLNode(ersatzNode, regelwerk, false);
            }
            this.BeideCursorPosSetzen(xmlCursorPos.AktNode, xmlCursorPos.PosAmNode, xmlCursorPos.PosImTextnode);
        }
Example #2
0
        public void TextEinfuegen(string text, XMLRegelwerk regelwerk)
        {
            XMLCursor xMLCursor = this.Clone();

            xMLCursor.SelektionOptimieren();
            XMLCursorPos xMLCursorPos  = default(XMLCursorPos);
            XMLCursorPos xMLCursorPos2 = (!xMLCursor.SelektionLoeschen(out xMLCursorPos)) ? this.StartPos.Clone() : xMLCursorPos;
            XmlNode      xmlNode       = null;

            xMLCursorPos2.TextEinfuegen(text, regelwerk, out xmlNode);
            if (xmlNode != null)
            {
                xMLCursorPos2.InsertXMLNode(xmlNode, regelwerk, false);
            }
            this.BeideCursorPosSetzen(xMLCursorPos2.AktNode, xMLCursorPos2.PosAmNode, xMLCursorPos2.PosImTextnode);
        }