共用方式為


IAttributeSet.GetAttributeListValue 方法

定義

多載

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.util.AttributeSet.getAttributeListValue(java.lang.String, java.lang.String, java.lang.String[], int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於