Share via


ICharacterData.DeleteData(Int32, Int32) Method

Definition

Remove a range of 16-bit units from the node.

[Android.Runtime.Register("deleteData", "(II)V", "GetDeleteData_IIHandler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void DeleteData (int offset, int count);
[<Android.Runtime.Register("deleteData", "(II)V", "GetDeleteData_IIHandler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DeleteData : int * int -> unit

Parameters

offset
Int32

The offset from which to start removing.

count
Int32

The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted.

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

Remove a range of 16-bit units from the node. Upon success, data and length reflect the change.

Java documentation for org.w3c.dom.CharacterData.deleteData(int, int).

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