语言

Context.GetTextFormatted(Int32) 方法

定义

从应用程序包的默认字符串表中返回本地化样式的 CharSequence。

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

参数

resId
Int32

CharSequence 文本的资源 ID

返回

此值不能为 null。

特性

注解

从应用程序包的默认字符串表中返回本地化样式的 CharSequence。

Java文档android.content.Context.getText(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于