TypedArray.GetText(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。