言語

IAttributeSet.GetAttributeResourceValue メソッド

定義

オーバーロード

名前 説明
GetAttributeResourceValue(Int32, Int32)

'index' にある属性の値をリソース識別子として返します。

GetAttributeResourceValue(String, String, Int32)

リソース識別子として 'attribute' の値を返します。

GetAttributeResourceValue(Int32, Int32)

'index' にある属性の値をリソース識別子として返します。

[Android.Runtime.Register("getAttributeResourceValue", "(II)I", "GetGetAttributeResourceValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeResourceValue(int index, int defaultValue);
[<Android.Runtime.Register("getAttributeResourceValue", "(II)I", "GetGetAttributeResourceValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeResourceValue : int * int -> int

パラメーター

index
Int32

目的の属性のインデックス 0...count-1。

defaultValue
Int32

属性が見つからない場合に返す内容。

返品

結果の値。

属性

注釈

'index' にある属性の値をリソース識別子として返します。

これは、この属性に含まれる値をリソース識別子 (つまり、元の形式の値) として返すという点で、 #getAttributeNameResource とは異なります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

GetAttributeResourceValue(String, String, Int32)

リソース識別子として 'attribute' の値を返します。

[Android.Runtime.Register("getAttributeResourceValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeResourceValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeResourceValue(string? namespace, string? attribute, int defaultValue);
[<Android.Runtime.Register("getAttributeResourceValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeResourceValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeResourceValue : string * string * int -> int

パラメーター

namespace
String

取得する属性の名前空間。

attribute
String

取得する属性。

defaultValue
Int32

属性が見つからない場合に返す内容。

返品

結果の値。

属性

注釈

リソース識別子として 'attribute' の値を返します。

これは、この属性に含まれる値をリソース識別子 (つまり、元の形式の値) として返すという点で、 #getAttributeNameResource とは異なります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象