Table of Contents

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

elementKind FormValueKind

The declared kind of the array's elements: Empty for an array of Variant, whose elements are of any kind.

lowerBound int

The index of the first element.

elements IReadOnlyList<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

FormValueKind

Elements

The elements, in index order.

public IReadOnlyList<FormValue> Elements { get; }

Property Value

IReadOnlyList<FormValue>

this[int]

The element at index.

public FormValue this[int index] { get; }

Parameters

index int

The element's index, from LowerBound to UpperBound.

Property Value

FormValue

The element.

Exceptions

ArgumentOutOfRangeException

index is outside the array's bounds.

LowerBound

The index of the first element.

public int LowerBound { get; }

Property Value

int

UpperBound

The index of the last element: one less than LowerBound for an empty array.

public int UpperBound { get; }

Property Value

int