Udostępnij za pośrednictwem


StyleSpan Constructors

Definition

Overloads

StyleSpan(TypefaceStyle)

Creates a StyleSpan from a style.

StyleSpan(Parcel)

Creates a StyleSpan from a parcel.

StyleSpan(TypefaceStyle, Int32)

Creates a StyleSpan from a style and font weight adjustment.

StyleSpan(IntPtr, JniHandleOwnership)

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

StyleSpan(TypefaceStyle)

Creates a StyleSpan from a style.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public StyleSpan (Android.Graphics.TypefaceStyle style);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Text.Style.StyleSpan : Android.Graphics.TypefaceStyle -> Android.Text.Style.StyleSpan

Parameters

style
TypefaceStyle

An integer constant describing the style for this span. Examples include bold, italic, and normal. Values are constants defined in Typeface.

Attributes

Remarks

Creates a StyleSpan from a style.

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

StyleSpan(Parcel)

Creates a StyleSpan from a parcel.

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

Parameters

src
Parcel

the parcel

Attributes

Remarks

Creates a StyleSpan from a parcel.

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

StyleSpan(TypefaceStyle, Int32)

Creates a StyleSpan from a style and font weight adjustment.

[Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=33)]
public StyleSpan (Android.Graphics.TypefaceStyle style, int fontWeightAdjustment);
[<Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=33)>]
new Android.Text.Style.StyleSpan : Android.Graphics.TypefaceStyle * int -> Android.Text.Style.StyleSpan

Parameters

style
TypefaceStyle

An integer constant describing the style for this span. Examples include bold, italic, and normal. Values are constants defined in Typeface.

fontWeightAdjustment
Int32

An integer describing the adjustment to be made to the font weight. This is added to the value of the current weight returned by Typeface#getWeight().

Attributes

Remarks

Creates a StyleSpan from a style and font weight adjustment.

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

StyleSpan(IntPtr, JniHandleOwnership)

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

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

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