Share via


ICharacterData.InsertData(Int32, String) Method

Definition

Insert a string at the specified 16-bit unit offset.

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

Parameters

offset
Int32

The character offset at which to insert.

arg
String

The DOMString to insert.

Attributes

Exceptions

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

Remarks

Insert a string at the specified 16-bit unit offset.

Java documentation for org.w3c.dom.CharacterData.insertData(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