ClassFieldOptionCollection<T>
Base collection for managing options in choice fields; add, remove, index, and enumerate items.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.InteractiveForms
Assembly:Telerik.Windows.Documents.Fixed.dll
Type Parameters:
T
The type of field option that extends FieldOptionBase.
Syntax:
public class FieldOptionCollection<T> : IEnumerable<T>, IEnumerable where T : FieldOptionBase
Inheritance: objectFieldOptionCollection<T>
Derived Classes:
Implements:
Properties
Count
The total number of options in the collection.
Declaration
public int Count { get; }
Property Value
The number of options in the collection.
this[int]
Get or set the option at the specified index.
Declaration
public T this[int index] { get; set; }
Parameters
index
The zero-based index of the option to get or set.
Property Value
T
The field option at the specified index.
Exceptions
Thrown when the index is outside the bounds of the collection.
Thrown when attempting to set a null value.
Methods
Add(T)
Add an option to the end of the collection.
Declaration
public void Add(T option)
Parameters
option
T
The option.
GetEnumerator()
Return an enumerator that iterates through the options.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
IEnumerator<T>
The options.
Implements
RemoveAt(int)
Remove the option at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
index
The option index.