語言

TypedArray.GetText(Int32) 方法

定義

在 var<index>/var< 處取得屬性的樣式字串值>。

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

參數

index
Int32

要檢索屬性的索引。

傳回

CharSequence 儲存字串資料。 可能會被造型。 若屬性未定義或無法強制轉換為字串,則回傳 null 。

備註

在 var<index>/var< 處取得屬性的樣式字串值>。

如果屬性不是字串,這個方法會嘗試強制它變成字串。

Java 文件 android.content.res.TypedArray.getText(int)。

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

適用於