共用方式為


AttributedString 類別

定義

AttributedString 會保存文字和相關屬性資訊。

[Android.Runtime.Register("java/text/AttributedString", DoNotGenerateAcw=true)]
public class AttributedString : Java.Lang.Object
[<Android.Runtime.Register("java/text/AttributedString", DoNotGenerateAcw=true)>]
type AttributedString = class
    inherit Object
繼承
AttributedString
屬性

備註

AttributedString 會保存文字和相關屬性資訊。 在某些情況下,文字讀取器想要透過 AttributedCharacterIterator 介面存取屬性化文字時,可能會作為實際數據儲存區。

屬性是由索引鍵識別的索引鍵/值組。 指定字元上沒有任何兩個屬性可以有相同的索引鍵。

屬性的值不可變,或不得由客戶端或記憶體變動。 它們一律會以傳址方式傳遞,且不會複製。

已在1.2中新增。

java.text.AttributedStringJava 檔。

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

建構函式

AttributedString(IAttributedCharacterIterator)

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

AttributedString(IAttributedCharacterIterator, Int32, Int32)

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

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

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

AttributedString(IntPtr, JniHandleOwnership)

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

AttributedString(String)

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

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

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

屬性

Class

傳回這個 Object的運行時間類別。

(繼承來源 Object)
Handle

基礎Android實例的句柄。

(繼承來源 Object)
Iterator

建立 AttributedCharacterIterator 實例,以提供此字串之整個內容的存取權。

JniIdentityHashCode

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
JniPeerMembers

AttributedString 會保存文字和相關屬性資訊。

PeerReference

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
ThresholdClass

此 API 支援適用於 Android 的 Mono 基礎結構,並不適合直接從您的程式代碼使用。

ThresholdType

此 API 支援適用於 Android 的 Mono 基礎結構,並不適合直接從您的程式代碼使用。

方法

AddAttribute(AttributedCharacterIteratorAttribute, Object)

將屬性加入至整個字串。

AddAttribute(AttributedCharacterIteratorAttribute, Object, Int32, Int32)

將屬性加入至整個字串。

AddAttributes(IDictionary<AttributedCharacterIteratorAttribute,Object>, Int32, Int32)

將一組屬性新增至字串的子範圍。

Clone()

建立並傳回這個 對象的複本。

(繼承來源 Object)
Dispose()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
Dispose(Boolean)

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
Equals(Object)

指出其他物件是否「等於」這個物件。

(繼承來源 Object)
GetHashCode()

傳回此物件的雜湊碼值。

(繼承來源 Object)
GetIterator(AttributedCharacterIteratorAttribute[])

建立 AttributedCharacterIterator 實例,以提供此字串之整個內容的存取權。

GetIterator(AttributedCharacterIteratorAttribute[], Int32, Int32)

建立 AttributedCharacterIterator 實例,以提供此字串之整個內容的存取權。

JavaFinalize()

當垃圾收集決定不再參考物件時,垃圾收集行程在 物件上呼叫。

(繼承來源 Object)
Notify()

喚醒正在等候此物件監視器的單一線程。

(繼承來源 Object)
NotifyAll()

喚醒正在等候此物件監視器的所有線程。

(繼承來源 Object)
SetHandle(IntPtr, JniHandleOwnership)

設定 Handle 屬性。

(繼承來源 Object)
ToArray<T>()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
ToString()

傳回物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
Wait()

讓目前線程等候直到喚醒為止,通常是藉由em <notified/em>或<em>interrupted</em> 來喚醒它。<>

(繼承來源 Object)
Wait(Int64)

讓目前的線程等到喚醒為止,通常是因為 <em>notified</em> 或 <em>interrupted</em>,或直到經過一定數量的實時為止。

(繼承來源 Object)
Wait(Int64, Int32)

讓目前的線程等到喚醒為止,通常是因為 <em>notified</em> 或 <em>interrupted</em>,或直到經過一定數量的實時為止。

(繼承來源 Object)

明確介面實作

IJavaPeerable.Disposed()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.DisposeUnlessReferenced()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.Finalized()

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.JniManagedPeerState

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

AttributedString 會保存文字和相關屬性資訊。

(繼承來源 Object)

擴充方法

JavaCast<TResult>(IJavaObject)

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)

AttributedString 會保存文字和相關屬性資訊。

GetJniTypeName(IJavaPeerable)

AttributedString 會保存文字和相關屬性資訊。

適用於