ForegroundColorSpan Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ForegroundColorSpan(Color) |
Creates a |
ForegroundColorSpan(Parcel) |
Creates a |
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.
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
- 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.