TableRowCollection Class
Represents a collection holding table rows.
public sealed class TableRowCollection : IReadOnlyList<TableRow>, IReadOnlyCollection<TableRow>,
IEnumerable<TableRow>, IEnumerable
- Namespace
- Spectre
.Console
Properties
- int Count
- Gets the number of rows in the collection.
Methods
-
int Add
(IEnumerable <IRenderable> ) - Adds a new row.
-
void Clear
() - Clears all rows.
-
IEnumerator<TableRow> GetEnumerator
() -
int Insert
(int, IEnumerable <IRenderable> ) - Inserts a new row at the specified index.
-
void RemoveAt
(int) - Removes a row at the specified index.
-
void Update
(int, int, IRenderable) - Update a table cell at the specified index.
Extension Methods
-
T And
< Table Row Collection> (Action < Table Row Collection> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.