Share via


ICharacterData.ReplaceData(Int32, Int32, String) Method

Definition

Replace the characters starting at the specified 16-bit unit offset with the specified string.

[Android.Runtime.Register("replaceData", "(IILjava/lang/String;)V", "GetReplaceData_IILjava_lang_String_Handler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ReplaceData (int offset, int count, string? arg);
[<Android.Runtime.Register("replaceData", "(IILjava/lang/String;)V", "GetReplaceData_IILjava_lang_String_Handler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReplaceData : int * int * string -> unit

Parameters

offset
Int32

The offset from which to start replacing.

count
Int32

The number of 16-bit units to replace. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced; (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation).

arg
String

The DOMString with which the range must be replaced.

Attributes

Exceptions

INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

Remarks

Replace the characters starting at the specified 16-bit unit offset with the specified string.

Java documentation for org.w3c.dom.CharacterData.replaceData(int, int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to