Class FieldOptionCollection<T>
Represents an abstract base collection for managing field options in interactive form fields, providing common functionality for adding, removing, and accessing options.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.InteractiveForms
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class FieldOptionCollection<T> : IEnumerable<T>, IEnumerable where T : FieldOptionBase
Type Parameters
T
The type of field option that extends FieldOptionBase. |
Properties
Count
Gets the total number of field options contained in this collection.
Declaration
public int Count { get; }
Property Value
System.Int32
The number of options in the collection. |
Item[Int32]
Gets or sets the field option at the specified index in the collection.
Declaration
public T this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the option to get or set. |
Property Value
T
The field option at the specified index. |
Exceptions
System.ArgumentOutOfRangeException
Thrown when the index is outside the bounds of the collection. |
System.ArgumentNullException
Thrown when attempting to set a null value. |
Methods
Add(T)
Adds option.
Declaration
public void Add(T option)
Parameters
T
option
The option. |
Clear()
Removes all elements from the collection.
Declaration
public void Clear()
GetEnumerator()
Iterates the options in the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>
The options. |
Implements
RemoveAt(Int32)
Removes option at specified index.
Declaration
public void RemoveAt(int index)
Parameters
System.Int32
index
The option index. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Iterates the options in the collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
The options. |