コード例 #1
0
ファイル: DOMCharacterData.cs プロジェクト: tyty999/peachpie
        /// <summary>
        /// Inserts the specified string at the specified character offset.
        /// </summary>
        /// <param name="offset">The position within the string to insert the supplied string data.</param>
        /// <param name="arg">The string data that is to be inserted into the existing string.</param>
        public virtual void insertData(int offset, string arg)
        {
            if (offset < 0 || offset > XmlCharacterData.Length)
            {
                DOMException.Throw(ExceptionCode.IndexOutOfBounds);
            }

            XmlCharacterData.InsertData(offset, arg);
        }
コード例 #2
0
        public bool insertData(int offset, string arg)
        {
            if (offset < 0 || offset > XmlCharacterData.Length)
            {
                DOMException.Throw(ExceptionCode.IndexOutOfBounds);
                return(false);
            }

            XmlCharacterData.InsertData(offset, arg);
            return(true);
        }