IRMLDataArray<>
Summary
Definition
Namespace: SDT4.Managed.UI.RML.Data
Assembly: SDT4.Managed.UI.dll
interface IRMLDataArray<>
Implements:
IRMLData
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
Methods
public Int32 Size()
Summary: Called by the DOM when it wants to know the size of the array.
Returns:
- Int32: Array size
public T Get(Int32 index)
Summary: Called by the DOM when it wants to retrieve data at an array. This may be a scalar variable (such as a RMLVariant) or another structure (like IRMLDataStruct or IRMLDataArray)
Parameters:
index(Int32): Index of array
Returns:
- T: Boxed variable. If you wish to return a scalar, this must be wrapped in IRMLDataScalar.
public Void Set(Int32 index, T value)
Summary: Sets variables for scalar arrays. This function can be disregarded if only non-scalars are accessed through arrays, unless you want to know that such a variable has been modified. If it's a reference type, it will be accurately modified anyway. This MUST be handled for both RMLVariant and IRMLDataScalar (due to there being no way to infer the underlying reference type)
Parameters:
-
index(Int32): Index of array -
value(T): Value that was sent from RmlUi