TypedArray.GetTextFormatted(Int32) Method

Definition

Retrieves the styled string value for the attribute at <var>index</var>.

[Android.Runtime.Register("getText", "(I)Ljava/lang/CharSequence;", "GetGetText_IHandler")]
public virtual Java.Lang.ICharSequence? GetTextFormatted (int index);
[<Android.Runtime.Register("getText", "(I)Ljava/lang/CharSequence;", "GetGetText_IHandler")>]
abstract member GetTextFormatted : int -> Java.Lang.ICharSequence
override this.GetTextFormatted : int -> Java.Lang.ICharSequence

Parameters

index
Int32

Index of attribute to retrieve.

Returns

CharSequence holding string data. May be styled. Returns null if the attribute is not defined or could not be coerced to a string.

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Retrieves the styled string value for the attribute at <var>index</var>.

If the attribute is not a string, this method will attempt to coerce it to a string.

Java documentation for android.content.res.TypedArray.getText(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