Class FormArray
- Namespace
- RDCore.Forms.Model
- Assembly
- RDCore.Forms.dll
A one-dimensional array of form values, with its lower bound.
public sealed class FormArray
- Inheritance
-
FormArray
- Inherited Members
Constructors
FormArray(FormValueKind, int, IReadOnlyList<FormValue>)
Creates an array.
public FormArray(FormValueKind elementKind, int lowerBound, IReadOnlyList<FormValue> elements)
Parameters
elementKindFormValueKindThe declared kind of the array's elements: Empty for an array of
Variant, whose elements are of any kind.lowerBoundintThe index of the first element.
elementsIReadOnlyList<FormValue>The elements, in index order.
Exceptions
- ArgumentException
An element is not of
elementKind, for an array whose elements have a declared kind.
Properties
ElementKind
The declared kind of the array's elements, or Empty for an array of Variant.
public FormValueKind ElementKind { get; }
Property Value
Elements
The elements, in index order.
public IReadOnlyList<FormValue> Elements { get; }
Property Value
this[int]
The element at index.
public FormValue this[int index] { get; }
Parameters
indexintThe element's index, from LowerBound to UpperBound.
Property Value
- FormValue
The element.
Exceptions
- ArgumentOutOfRangeException
indexis outside the array's bounds.
LowerBound
The index of the first element.
public int LowerBound { get; }
Property Value
UpperBound
The index of the last element: one less than LowerBound for an empty array.
public int UpperBound { get; }