共用方式為


AttributedString 建構函式

定義

多載

AttributedString(IAttributedCharacterIterator)

使用 AttributedCharacterIterator 所代表的指定屬性文字建構 AttributedString 實例。

AttributedString(String)

使用指定的文字建構 AttributedString 實例。

AttributedString(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

使用指定的文字和屬性建構 AttributedString 實例。

AttributedString(IAttributedCharacterIterator, Int32, Int32)

使用 AttributedCharacterIterator 所表示之指定屬性文字的子範圍,建構 AttributedString 實例。

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

使用指定的文字建構 AttributedString 實例。

AttributedString(IAttributedCharacterIterator)

使用 AttributedCharacterIterator 所代表的指定屬性文字建構 AttributedString 實例。

[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 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理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)

使用 AttributedCharacterIterator 所表示之指定屬性文字的子範圍,建構 AttributedString 實例。

[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 小於 的第一個索引iteratorend則大於 中的iterator最後一個索引 + 1,如果 為 ,則為 。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 小於 的第一個索引iteratorend則大於 中的iterator最後一個索引 + 1,如果 為 ,則為 。start > end

備註

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

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

適用於