/// <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); }
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); }