TextView.GetTextColor(Context, TypedArray, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果設定為 AttributeSet,則回傳 TextView_textColor 屬性的預設顏色;若 TextView_textColor 未直接設定,則回傳 TextAppearance_textColor TextView_textAppearance 屬性的預設顏色。
[Android.Runtime.Register("getTextColor", "(Landroid/content/Context;Landroid/content/res/TypedArray;I)I", "")]
public static int GetTextColor(Android.Content.Context? context, Android.Content.Res.TypedArray? attrs, int def);
[<Android.Runtime.Register("getTextColor", "(Landroid/content/Context;Landroid/content/res/TypedArray;I)I", "")>]
static member GetTextColor : Android.Content.Context * Android.Content.Res.TypedArray * int -> int
參數
- context
- Context
用於存取應用程式資源與服務的上下文。
- attrs
- TypedArray
屬性則由 XML 提供。
- def
- Int32
def 值。
傳回
取得文字顏色操作的結果。
- 屬性
備註
如果設定為 AttributeSet,則回傳 TextView_textColor 屬性的預設顏色;若 TextView_textColor 未直接設定,則回傳 TextAppearance_textColor TextView_textAppearance 屬性的預設顏色。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。