IAttributeSet.GetAttributeFloatValue Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetAttributeFloatValue(Int32, Single) |
Return the float value of attribute at 'index'. |
GetAttributeFloatValue(String, String, Single) |
Return the float value of 'attribute'. |
Return the float value of attribute at 'index'.
[Android.Runtime.Register("getAttributeFloatValue", "(IF)F", "GetGetAttributeFloatValue_IFHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public float GetAttributeFloatValue (int index, float defaultValue);
[<Android.Runtime.Register("getAttributeFloatValue", "(IF)F", "GetGetAttributeFloatValue_IFHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeFloatValue : int * single -> single
Parameters
- index
- Int32
Index of the desired attribute, 0...count-1.
- defaultValue
- Single
What to return if the attribute isn't found.
Returns
Resulting value.
- Attributes
Remarks
Return the float value of attribute at 'index'.
Java documentation for android.util.AttributeSet.getAttributeFloatValue(int, float)
.
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
.NET for Android .NET for Android API 35 et .NET for Android .NET for Android API 34
Produit | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
Return the float value of 'attribute'.
[Android.Runtime.Register("getAttributeFloatValue", "(Ljava/lang/String;Ljava/lang/String;F)F", "GetGetAttributeFloatValue_Ljava_lang_String_Ljava_lang_String_FHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public float GetAttributeFloatValue (string? namespace, string? attribute, float defaultValue);
[<Android.Runtime.Register("getAttributeFloatValue", "(Ljava/lang/String;Ljava/lang/String;F)F", "GetGetAttributeFloatValue_Ljava_lang_String_Ljava_lang_String_FHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeFloatValue : string * string * single -> single
Parameters
- namespace
- String
Namespace of attribute to retrieve.
- attribute
- String
The attribute to retrieve.
- defaultValue
- Single
What to return if the attribute isn't found.
Returns
Resulting value.
- Attributes
Remarks
Return the float value of 'attribute'.
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
.NET for Android .NET for Android API 35 et .NET for Android .NET for Android API 34
Produit | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |