语言

XmlReaderResourceParser.GetAttributeFloatValue 方法

定义

重载

名称 说明
GetAttributeFloatValue(Int32, Single)

返回“index”处属性的浮点值。

GetAttributeFloatValue(String, String, Single)

返回“attribute”的浮点值。

GetAttributeFloatValue(Int32, Single)

返回“index”处属性的浮点值。

public float GetAttributeFloatValue(int index, float defaultValue);
abstract member GetAttributeFloatValue : int * single -> single
override this.GetAttributeFloatValue : int * single -> single

参数

index
Int32

所需属性的索引,0...count-1。

defaultValue
Single

如果未找到该属性,则返回的内容。

返回

生成的值。

实现

注解

返回“index”处属性的浮点值。

Android 参考。android.util.AttributeSet.getAttributeFloatValue

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

GetAttributeFloatValue(String, String, Single)

返回“attribute”的浮点值。

public float GetAttributeFloatValue(string? namespaceURI, string? attribute, float defaultValue);
abstract member GetAttributeFloatValue : string * string * single -> single
override this.GetAttributeFloatValue : string * string * single -> single

参数

namespaceURI
String
attribute
String

要检索的属性。

defaultValue
Single

如果未找到该属性,则返回的内容。

返回

生成的值。

实现

注解

返回“attribute”的浮点值。

Android 参考。android.util.AttributeSet.getAttributeFloatValue

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于