語言

AttributedString 建構函式

定義

多載

名稱 Description
AttributedString(IAttributedCharacterIterator)

建構一個 AttributedString 實例,並以 AttributedCharacterIterator 表示給定的屬性文字。

AttributedString(String)

用給定的文字建構一個 AttributedString 實例。

AttributedString(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

用給定的文字和屬性建構一個 AttributedString 實例。

AttributedString(IAttributedCharacterIterator, Int32, Int32)

建構一個 AttributedString 實例,包含給定屬性文本的子範圍,由 AttributedCharacterIterator 表示。

AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[])

用給定的文字建構一個 AttributedString 實例。

AttributedString(IAttributedCharacterIterator)

建構一個 AttributedString 實例,並以 AttributedCharacterIterator 表示給定的屬性文字。

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator -> Java.Text.AttributedString

參數

text
IAttributedCharacterIterator

此字串的文字。

屬性

備註

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

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

適用於

AttributedString(String)

用給定的文字建構一個 AttributedString 實例。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public AttributedString(string? text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Text.AttributedString : string -> Java.Text.AttributedString

參數

text
String

此字串的文字。

屬性

備註

java.text.AttributedString.AttributedString(java.lang.String)Java 檔。

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

適用於

AttributedString(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

protected AttributedString(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Text.AttributedString : nativeint * Android.Runtime.JniHandleOwnership -> Java.Text.AttributedString

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

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

適用於

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

用給定的文字和屬性建構一個 AttributedString 實例。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Map;)V", "")]
public AttributedString(string? text, System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute,object>? attributes);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Map;)V", "")>]
new Java.Text.AttributedString : string * System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute, obj> -> Java.Text.AttributedString

參數

text
String

此字串的文字。

attributes
IDictionary<AttributedCharacterIteratorAttribute,Object>

就是適用於整個字串的屬性。

屬性

備註

java.text.AttributedString.AttributedString(java.lang.String, java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute, ?>)Java 檔。

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

適用於

AttributedString(IAttributedCharacterIterator, Int32, Int32)

建構一個 AttributedString 實例,包含給定屬性文本的子範圍,由 AttributedCharacterIterator 表示。

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text, int beginIndex, int endIndex);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator * int * int -> Java.Text.AttributedString

參數

text
IAttributedCharacterIterator

此字串的文字。

beginIndex
Int32

範圍第一個字元的索引。

endIndex
Int32

字元索引緊接在該範圍的最後一個字元之後。

屬性

例外狀況

start 小於 的 iterator第一個指標, end 則大於 的最後一個指標 + 1 , iterator 或若 start > end

備註

java.text.AttributedString.AttributedString(java.text.AttributedCharacterIterator, int, int)Java 檔。

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

適用於

AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[])

用給定的文字建構一個 AttributedString 實例。

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II[Ljava/text/AttributedCharacterIterator$Attribute;)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text, int beginIndex, int endIndex, Java.Text.AttributedCharacterIteratorAttribute[]? attributes);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II[Ljava/text/AttributedCharacterIterator$Attribute;)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator * int * int * Java.Text.AttributedCharacterIteratorAttribute[] -> Java.Text.AttributedString

參數

text
IAttributedCharacterIterator

此字串的文字。

beginIndex
Int32
endIndex
Int32
屬性

例外狀況

start 小於 的 iterator第一個指標, end 則大於 的最後一個指標 + 1 , iterator 或若 start > end

備註

java.text.AttributedString.AttributedString(java.lang.String)Java 檔。

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

適用於