IAttributeSet.GetAttributeListValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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”的索引。
适用于 . 的 android.util.AttributeSet.getAttributeListValue(int, java.lang.String[], int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
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”的值的索引。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。