語言

AttributedString.GetIterator 方法

定義

多載

名稱 Description
GetIterator(AttributedCharacterIteratorAttribute[])

建立一個 AttributedCharacterIterator 實例,提供該字串全部內容的存取權。

GetIterator(AttributedCharacterIteratorAttribute[], Int32, Int32)

建立一個 AttributedCharacterIterator 實例,提供該字串全部內容的存取權。

GetIterator(AttributedCharacterIteratorAttribute[])

建立一個 AttributedCharacterIterator 實例,提供該字串全部內容的存取權。

[Android.Runtime.Register("getIterator", "([Ljava/text/AttributedCharacterIterator$Attribute;)Ljava/text/AttributedCharacterIterator;", "GetGetIterator_arrayLjava_text_AttributedCharacterIterator_Attribute_Handler")]
public virtual Java.Text.IAttributedCharacterIterator? GetIterator(Java.Text.AttributedCharacterIteratorAttribute[]? attributes);
[<Android.Runtime.Register("getIterator", "([Ljava/text/AttributedCharacterIterator$Attribute;)Ljava/text/AttributedCharacterIterator;", "GetGetIterator_arrayLjava_text_AttributedCharacterIterator_Attribute_Handler")>]
abstract member GetIterator : Java.Text.AttributedCharacterIteratorAttribute[] -> Java.Text.IAttributedCharacterIterator
override this.GetIterator : Java.Text.AttributedCharacterIteratorAttribute[] -> Java.Text.IAttributedCharacterIterator

參數

attributes
AttributedCharacterIteratorAttribute[]

包含屬性的陣列,若為此文本定義,則會包含在新迭代器中的屬性。

傳回

一個迭代器,提供對文本及其屬性的存取。

屬性

備註

java.text.AttributedString.getIterator()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetIterator(AttributedCharacterIteratorAttribute[], Int32, Int32)

建立一個 AttributedCharacterIterator 實例,提供該字串全部內容的存取權。

[Android.Runtime.Register("getIterator", "([Ljava/text/AttributedCharacterIterator$Attribute;II)Ljava/text/AttributedCharacterIterator;", "GetGetIterator_arrayLjava_text_AttributedCharacterIterator_Attribute_IIHandler")]
public virtual Java.Text.IAttributedCharacterIterator? GetIterator(Java.Text.AttributedCharacterIteratorAttribute[]? attributes, int beginIndex, int endIndex);
[<Android.Runtime.Register("getIterator", "([Ljava/text/AttributedCharacterIterator$Attribute;II)Ljava/text/AttributedCharacterIterator;", "GetGetIterator_arrayLjava_text_AttributedCharacterIterator_Attribute_IIHandler")>]
abstract member GetIterator : Java.Text.AttributedCharacterIteratorAttribute[] * int * int -> Java.Text.IAttributedCharacterIterator
override this.GetIterator : Java.Text.AttributedCharacterIteratorAttribute[] * int * int -> Java.Text.IAttributedCharacterIterator

參數

attributes
AttributedCharacterIteratorAttribute[]

包含屬性的陣列,若為此文本定義,則會包含在新迭代器中的屬性。

beginIndex
Int32
endIndex
Int32

傳回

一個迭代器,提供對文本及其屬性的存取。

屬性

備註

java.text.AttributedString.getIterator()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於