次の方法で共有


ICharacterData.SubstringData(Int32, Int32) Method

Definition

Extracts a range of data from the node.

[Android.Runtime.Register("substringData", "(II)Ljava/lang/String;", "GetSubstringData_IIHandler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? SubstringData (int offset, int count);
[<Android.Runtime.Register("substringData", "(II)Ljava/lang/String;", "GetSubstringData_IIHandler:Org.W3c.Dom.ICharacterDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SubstringData : int * int -> string

Parameters

offset
Int32

Start offset of substring to extract.

count
Int32

The number of 16-bit units to extract.

Returns

The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned.

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.
DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a DOMString.

Remarks

Extracts a range of data from the node.

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