/// <summary> /// Replaces the specified number of characters starting at the specified offset with the specified string. /// </summary> /// <param name="offset">The position within the string to start replacing.</param> /// <param name="count">The number of characters to replace.</param> /// <param name="arg">The new data that replaces the old string data.</param> /// <returns><B>True</B> or <B>false</B>.</returns> public virtual void replaceData(int offset, int count, string arg) { if (offset < 0 || count < 0 || offset > length) { DOMException.Throw(ExceptionCode.IndexOutOfBounds); } XmlCharacterData.ReplaceData(offset, count, arg); }
public bool replaceData(int offset, int count, string arg) { if (offset < 0 || count < 0 || offset > length) { DOMException.Throw(ExceptionCode.IndexOutOfBounds); return(false); } XmlCharacterData.ReplaceData(offset, count, arg); return(true); }