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
Parameters:
index(Int32): Index of array
Returns:
- T: Boxed variable. If you wish to return a scalar, this must be wrapped in
.
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
Parameters:
-
index(Int32): Index of array -
value(T): Value that was sent from RmlUi