XmlReaderResourceParser.GetAttributeFloatValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAttributeFloatValue(Int32, Single) |
回傳 attribute 的浮點值,位於「index」。 |
| GetAttributeFloatValue(String, String, Single) |
回傳浮點數值 'attribute'。 |
GetAttributeFloatValue(Int32, Single)
回傳 attribute 的浮點值,位於「index」。
public float GetAttributeFloatValue(int index, float defaultValue);
abstract member GetAttributeFloatValue : int * single -> single
override this.GetAttributeFloatValue : int * single -> single
參數
- index
- Int32
目標屬性的索引,0...count-1。
- defaultValue
- Single
如果找不到該屬性該回傳什麼。
傳回
結果價值。
實作
備註
回傳 attribute 的浮點值,位於「index」。
Android 參考資料。android.util.AttributeSet.getAttributeFloatValue
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetAttributeFloatValue(String, String, Single)
回傳浮點數值 'attribute'。
public float GetAttributeFloatValue(string? namespaceURI, string? attribute, float defaultValue);
abstract member GetAttributeFloatValue : string * string * single -> single
override this.GetAttributeFloatValue : string * string * single -> single
參數
- namespaceURI
- String
- attribute
- String
要取回的屬性。
- defaultValue
- Single
如果找不到該屬性該回傳什麼。
傳回
結果價值。
實作
備註
回傳浮點數值 'attribute'。
Android 參考資料。android.util.AttributeSet.getAttributeFloatValue
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。