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:
Methods
Add an option to the end of the collection.
public void Add(T option)
The option.
Remove all options from the collection.
public void Clear()
Return an enumerator that iterates through the options.
Remove the option at the specified index.
Properties
The total number of options in the collection.
public int Count { get; }
The number of options in the collection.
Get or set the option at the specified index.
public T this[int index] { get; set; }
The zero-based index of the option to get or set.
Property Value: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.