語言

TypedArray.GetFont(Int32) 方法

定義

在 var<index>/var< 處取得該屬性>的字體。

[Android.Runtime.Register("getFont", "(I)Landroid/graphics/Typeface;", "GetGetFont_IHandler", ApiSince=26)]
public virtual Android.Graphics.Typeface? GetFont(int index);
[<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

參數

index
Int32

要檢索屬性的索引。

傳回

屬性用字體,或者 null 如果沒定義。

屬性

備註

在 var<index>/var< 處取得該屬性>的字體。

如果該屬性已定義但不是字型,此方法會拋出例外。

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

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

適用於