語言

Resources.GetFont(Int32) 方法

定義

回傳與特定資源 ID 相關的字體值。

[Android.Runtime.Register("getFont", "(I)Landroid/graphics/Typeface;", "GetGetFont_IHandler", ApiSince=26)]
public virtual Android.Graphics.Typeface GetFont(int id);
[<Android.Runtime.Register("getFont", "(I)Landroid/graphics/Typeface;", "GetGetFont_IHandler", ApiSince=26)>]
abstract member GetFont : int -> Android.Graphics.Typeface
override this.GetFont : int -> Android.Graphics.Typeface

參數

id
Int32

由 aapt 工具產生的目標資源識別碼。 此整數編碼套件、類型及資源條目。 值 0 是無效的識別碼。

傳回

字體 與資源相關的字體資料。

屬性

備註

回傳與特定資源 ID 相關的字體值。 {

Java 文件 android.content.res.Resources.getFont(int)。

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

適用於