IAttributeSet.GetAttributeBooleanValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAttributeBooleanValue(Int32, Boolean) |
回傳屬性的布林值,位於「index」。 |
| GetAttributeBooleanValue(String, String, Boolean) |
回傳布林值的「屬性」。 |
GetAttributeBooleanValue(Int32, Boolean)
回傳屬性的布林值,位於「index」。
[Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue(int index, bool defaultValue);
[<Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : int * bool -> bool
參數
- index
- Int32
目標屬性的索引,0...count-1。
- defaultValue
- Boolean
如果找不到該屬性該回傳什麼。
傳回
結果價值。
- 屬性
備註
回傳屬性的布林值,位於「index」。
Java 文件 android.util.AttributeSet.getAttributeBooleanValue(int, boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetAttributeBooleanValue(String, String, Boolean)
回傳布林值的「屬性」。
[Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue(string? namespace, string? attribute, bool defaultValue);
[<Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : string * string * bool -> bool
參數
- namespace
- String
要取回屬性的命名空間。
- attribute
- String
要取回的屬性。
- defaultValue
- Boolean
如果找不到該屬性該回傳什麼。
傳回
結果價值。
- 屬性
備註
回傳布林值的「屬性」。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。