語言

Context.GetText(Int32) 方法

定義

從應用程式套件預設字串表回傳一個本地化且有樣式的 CharSequence。

public string GetText(int resId);
member this.GetText : int -> string

參數

resId
Int32

CharSequence 文本的資源識別碼

傳回

此值不可能是空值。

備註

從應用程式套件預設字串表回傳一個本地化且有樣式的 CharSequence。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於