IAttributeSet.GetAttributeListValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAttributeListValue(Int32, String[], Int32) |
回傳「options」清單中「index」屬性值的索引。 |
| GetAttributeListValue(String, String, String[], Int32) |
回傳「options」清單中「attribute」值的索引。 |
GetAttributeListValue(Int32, String[], Int32)
回傳「options」清單中「index」屬性值的索引。
[Android.Runtime.Register("getAttributeListValue", "(I[Ljava/lang/String;I)I", "GetGetAttributeListValue_IarrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeListValue(int index, string[]? options, int defaultValue);
[<Android.Runtime.Register("getAttributeListValue", "(I[Ljava/lang/String;I)I", "GetGetAttributeListValue_IarrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeListValue : int * string[] * int -> int
參數
- index
- Int32
目標屬性的索引,0...count-1。
- options
- String[]
我們要檢查其值的字串清單。
- defaultValue
- Int32
如果屬性不存在或找不到匹配,則回傳這個值。
傳回
索引到「options」或 defaultValue。
- 屬性
備註
回傳「options」清單中「index」屬性值的索引。
Java 文件 android.util.AttributeSet.getAttributeListValue(int, java.lang.String[], int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetAttributeListValue(String, String, String[], Int32)
回傳「options」清單中「attribute」值的索引。
[Android.Runtime.Register("getAttributeListValue", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;I)I", "GetGetAttributeListValue_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeListValue(string? namespace, string? attribute, string[]? options, int defaultValue);
[<Android.Runtime.Register("getAttributeListValue", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;I)I", "GetGetAttributeListValue_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeListValue : string * string * string[] * int -> int
參數
- namespace
- String
要取回屬性的命名空間。
- attribute
- String
要取回的屬性名稱。
- options
- String[]
我們要檢查其值的字串清單。
- defaultValue
- Int32
如果屬性不存在或找不到匹配,則回傳這個值。
傳回
索引到「options」或 defaultValue。
- 屬性
備註
回傳「options」清單中「attribute」值的索引。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。