TypedArray.GetText(Int32) Method
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.
Retrieves the styled string value for the attribute at <var>index</var>.
public string? GetText (int index);
member this.GetText : int -> string
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.
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.