Class DialogRowCollection<T>
Represents a collection of dialog rows.
public class DialogRowCollection<T> : IEnumerable<T>, IEnumerable where T : IDialogRow
Type Parameters
TThe type of the dialog rows.
- Inheritance
-
DialogRowCollection<T>
- Implements
-
IEnumerable<T>
- Derived
- Inherited Members
Constructors
DialogRowCollection()
public DialogRowCollection()
Properties
Count
Gets the number of rows in the list.
public int Count { get; }
Property Value
RawText
public string RawText { get; }
Property Value
Methods
Add(T)
Adds the specified row to the list.
public virtual void Add(T row)
Parameters
rowTThe row to add.
Exceptions
- ArgumentNullException
Thrown if
rowis null.
Clear()
Removes all rows from the list.
public virtual void Clear()
Get(int)
Gets the row at the specified index.
public virtual T Get(int index)
Parameters
indexintThe index.
Returns
- T
The row at the specified index.
Exceptions
- ArgumentOutOfRangeException
Thrown if the
indexis out of the range of the list.
GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
Remove(T)
Removes the first occurrence of the specified row to the list.
public virtual bool Remove(T row)
Parameters
rowT