Compartir a través de


TextView.Typeface Property

Definition

Gets the current Typeface that is used to style the text. -or- Sets the typeface and style in which the text should be displayed.

public virtual Android.Graphics.Typeface? Typeface { [Android.Runtime.Register("getTypeface", "()Landroid/graphics/Typeface;", "GetGetTypefaceHandler")] get; [Android.Runtime.Register("setTypeface", "(Landroid/graphics/Typeface;)V", "GetSetTypeface_Landroid_graphics_Typeface_Handler")] set; }
[<get: Android.Runtime.Register("getTypeface", "()Landroid/graphics/Typeface;", "GetGetTypefaceHandler")>]
[<set: Android.Runtime.Register("setTypeface", "(Landroid/graphics/Typeface;)V", "GetSetTypeface_Landroid_graphics_Typeface_Handler")>]
member this.Typeface : Android.Graphics.Typeface with get, set

Property Value

The current Typeface.

Attributes

Remarks

Property getter documentation:

Gets the current Typeface that is used to style the text.

Java documentation for android.widget.TextView.getTypeface().

Property setter documentation:

Sets the typeface and style in which the text should be displayed. Note that not all Typeface families actually have bold and italic variants, so you may need to use #setTypeface(Typeface, int) to get the appearance that you actually want.

Java documentation for android.widget.TextView.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

See also