語言

ViewStructure.SetTextStyle(Single, Int32, Int32, AssistTextStyle) 方法

定義

明確設定先前設定為 #setText的文字的預設全域樣式資訊。

[Android.Runtime.Register("setTextStyle", "(FIII)V", "GetSetTextStyle_FIIIHandler", ApiSince=23)]
public abstract void SetTextStyle(float size, int fgColor, int bgColor, Android.App.Assist.AssistTextStyle style);
[<Android.Runtime.Register("setTextStyle", "(FIII)V", "GetSetTextStyle_FIIIHandler", ApiSince=23)>]
abstract member SetTextStyle : single * int * int * Android.App.Assist.AssistTextStyle -> unit

參數

size
Single

文字的像素大小。

fgColor
Int32

前景色,打包為 0xAARRGGBB。

bgColor
Int32

背景色,打包為 0xAARRGGBB。

style
AssistTextStyle

樣式旗標,定義如下 android.app.assist.AssistStructure.ViewNode

屬性

備註

明確設定先前設定為 #setText的文字的預設全域樣式資訊。

Java 文件 android.view.ViewStructure.setTextStyle(float, int, int, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於