IAttributeSet.GetAttributeUnsignedIntValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetAttributeUnsignedIntValue(Int32, Int32) |
返回设置为无符号值的“index”属性的整数值。 |
GetAttributeUnsignedIntValue(String, String, Int32) |
返回格式化为无符号值的“attribute”的布尔值。 |
GetAttributeUnsignedIntValue(Int32, Int32)
返回设置为无符号值的“index”属性的整数值。
[Android.Runtime.Register("getAttributeUnsignedIntValue", "(II)I", "GetGetAttributeUnsignedIntValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeUnsignedIntValue (int index, int defaultValue);
[<Android.Runtime.Register("getAttributeUnsignedIntValue", "(II)I", "GetGetAttributeUnsignedIntValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeUnsignedIntValue : int * int -> int
参数
- index
- Int32
所需属性的索引,0...count-1。
- defaultValue
- Int32
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
注解
返回设置为无符号值的“index”属性的整数值。 具体而言,格式为 0xn...n 和 #n...处理 n。
适用于 . 的 android.util.AttributeSet.getAttributeUnsignedIntValue(int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
GetAttributeUnsignedIntValue(String, String, Int32)
返回格式化为无符号值的“attribute”的布尔值。
[Android.Runtime.Register("getAttributeUnsignedIntValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeUnsignedIntValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeUnsignedIntValue (string? namespace, string? attribute, int defaultValue);
[<Android.Runtime.Register("getAttributeUnsignedIntValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeUnsignedIntValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeUnsignedIntValue : string * string * int -> int
参数
- namespace
- String
要检索的属性的命名空间。
- attribute
- String
要检索的属性。
- defaultValue
- Int32
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
注解
返回格式化为无符号值的“attribute”的布尔值。 具体而言,格式为 0xn...n 和 #n...处理 n。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。