Condividi tramite


Array.GetFloat(Object, Int32) Method

Definition

Returns the value of the indexed component in the specified array object, as a float.

[Android.Runtime.Register("getFloat", "(Ljava/lang/Object;I)F", "")]
public static float GetFloat (Java.Lang.Object array, int index);
[<Android.Runtime.Register("getFloat", "(Ljava/lang/Object;I)F", "")>]
static member GetFloat : Java.Lang.Object * int -> single

Parameters

array
Object

the array

index
Int32

the index

Returns

the value of the indexed component in the specified array

Attributes

Exceptions

if array == null

if array is not an array or the element at the index position can not be converted to the return type

if index = array.length

Remarks

Returns the value of the indexed component in the specified array object, as a float.

Java documentation for java.lang.reflect.Array.getFloat(java.lang.Object, 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