TypefaceSpan Constructors

Definition

Overloads

TypefaceSpan(Typeface)

Constructs a TypefaceSpan from a Typeface.

TypefaceSpan(Parcel)

Constructs a TypefaceSpan from a parcel.

TypefaceSpan(String)

Constructs a TypefaceSpan based on the font family.

TypefaceSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TypefaceSpan(Typeface)

Constructs a TypefaceSpan from a Typeface.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Typeface;)V", "", ApiSince=28)]
public TypefaceSpan (Android.Graphics.Typeface typeface);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Typeface;)V", "", ApiSince=28)>]
new Android.Text.Style.TypefaceSpan : Android.Graphics.Typeface -> Android.Text.Style.TypefaceSpan

Parameters

typeface
Typeface

the typeface

Attributes

Remarks

Constructs a TypefaceSpan from a Typeface. The previous style of the TextPaint is overridden and the style of the typeface is used.

Java documentation for android.text.style.TypefaceSpan.TypefaceSpan(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

TypefaceSpan(Parcel)

Constructs a TypefaceSpan from a parcel.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public TypefaceSpan (Android.OS.Parcel src);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Text.Style.TypefaceSpan : Android.OS.Parcel -> Android.Text.Style.TypefaceSpan

Parameters

src
Parcel
Attributes

Remarks

Constructs a TypefaceSpan from a parcel.

Java documentation for android.text.style.TypefaceSpan.TypefaceSpan(android.os.Parcel).

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

TypefaceSpan(String)

Constructs a TypefaceSpan based on the font family.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public TypefaceSpan (string? family);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Text.Style.TypefaceSpan : string -> Android.Text.Style.TypefaceSpan

Parameters

family
String

The font family for this typeface. Examples include "monospace", "serif", and "sans-serif"

Attributes

Remarks

Constructs a TypefaceSpan based on the font family. The previous style of the TextPaint is kept. If the font family is null, the text paint is not modified.

Java documentation for android.text.style.TypefaceSpan.TypefaceSpan(java.lang.String).

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

TypefaceSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TypefaceSpan (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Style.TypefaceSpan : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Style.TypefaceSpan

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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