Share via


IAttributeSet.GetAttributeIntValue Method

Definition

Overloads

GetAttributeIntValue(Int32, Int32)

Return the integer value of attribute at 'index'.

GetAttributeIntValue(String, String, Int32)

Return the integer value of 'attribute'.

GetAttributeIntValue(Int32, Int32)

Return the integer value of attribute at 'index'.

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

Parameters

index
Int32

Index of the desired attribute, 0...count-1.

defaultValue
Int32

What to return if the attribute isn't found.

Returns

Resulting value.

Attributes

Remarks

Return the integer value of attribute at 'index'.

Java documentation for android.util.AttributeSet.getAttributeIntValue(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetAttributeIntValue(String, String, Int32)

Return the integer value of 'attribute'.

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

Parameters

namespace
String

Namespace of attribute to retrieve.

attribute
String

The attribute to retrieve.

defaultValue
Int32

What to return if the attribute isn't found.

Returns

Resulting value.

Attributes

Remarks

Return the integer value of 'attribute'.

Java documentation for android.util.AttributeSet.getAttributeIntValue(java.lang.String, java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to