TypedValue.CoerceToStringFormatted Method

Definition

Regardless of the actual type of the value, try to convert it to a string value.

[Android.Runtime.Register("coerceToString", "()Ljava/lang/CharSequence;", "")]
public Java.Lang.ICharSequence? CoerceToStringFormatted ();
[<Android.Runtime.Register("coerceToString", "()Ljava/lang/CharSequence;", "")>]
member this.CoerceToStringFormatted : unit -> Java.Lang.ICharSequence

Returns

CharSequence The coerced string value. If the value is null or the type is not known, null is returned.

Attributes

Remarks

Regardless of the actual type of the value, try to convert it to a string value. For example, a color type will be converted to a string of the form #aarrggbb.

Java documentation for android.util.TypedValue.coerceToString().

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