共用方式為


Paint.SetTypeface(Typeface) Method

Definition

Set or clear the typeface object.

[Android.Runtime.Register("setTypeface", "(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;", "GetSetTypeface_Landroid_graphics_Typeface_Handler")]
public virtual Android.Graphics.Typeface? SetTypeface (Android.Graphics.Typeface? typeface);
[<Android.Runtime.Register("setTypeface", "(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;", "GetSetTypeface_Landroid_graphics_Typeface_Handler")>]
abstract member SetTypeface : Android.Graphics.Typeface -> Android.Graphics.Typeface
override this.SetTypeface : Android.Graphics.Typeface -> Android.Graphics.Typeface

Parameters

typeface
Typeface

May be null. The typeface to be installed in the paint

Returns

typeface

Attributes

Remarks

Set or clear the typeface object. <p /> Pass null to clear any previous typeface. As a convenience, the parameter passed is also returned.

Java documentation for android.graphics.Paint.setTypeface(android.graphics.Typeface).

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