TypedArray.GetFont(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索 var<索引>/var< 处>属性的 Typeface。
[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<索引>/var< 处>属性的 Typeface。
如果定义属性但不是字体,则此方法将引发异常。
Java文档android.content.res.TypedArray.getFont(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。