Compartir a través de


Resources.GetFont(Int32) Method

Definition

Return the Typeface value associated with a particular resource 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

Parameters

id
Int32

The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

Returns

Typeface The Typeface data associated with the resource.

Attributes

Remarks

Return the Typeface value associated with a particular resource ID. {

Java documentation for android.content.res.Resources.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.

Applies to