ForegroundColorSpan Constructors

Definition

Overloads

ForegroundColorSpan(Color)

Creates a ForegroundColorSpan from a color integer.

ForegroundColorSpan(Parcel)

Creates a ForegroundColorSpan from a parcel.

ForegroundColorSpan(IntPtr, JniHandleOwnership)

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

ForegroundColorSpan(Color)

Creates a ForegroundColorSpan from a color integer.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public ForegroundColorSpan (Android.Graphics.Color color);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Text.Style.ForegroundColorSpan : Android.Graphics.Color -> Android.Text.Style.ForegroundColorSpan

Parameters

color
Color

color integer that defines the text color

Attributes

Remarks

Creates a ForegroundColorSpan from a color integer.

To get the color integer associated with a particular color resource ID, use android.content.res.Resources#getColor(int, Resources.Theme)

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

ForegroundColorSpan(Parcel)

Creates a ForegroundColorSpan from a parcel.

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

Parameters

src
Parcel
Attributes

Remarks

Creates a ForegroundColorSpan from a parcel.

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

ForegroundColorSpan(IntPtr, JniHandleOwnership)

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

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

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