TypedArray.GetFont(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve the Typeface for the attribute at <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
Parameters
- index
- Int32
Index of attribute to retrieve.
Returns
Typeface for the attribute, or null
if not defined.
- Attributes
Remarks
Retrieve the Typeface for the attribute at <var>index</var>.
This method will throw an exception if the attribute is defined but is not a font.
Java documentation for android.content.res.TypedArray.getFont(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.