SegmentLineIterator Class
An iterator for
SegmentLine
collections.
public sealed class SegmentLineIterator : IEnumerator<Segment>, IDisposable, IEnumerator
- Namespace
- Spectre
.Console .Rendering - Interfaces
-
- IEnumerator
<Segment> - IDisposable
- IEnumerator
- IEnumerator
Constructors
-
SegmentLineIterator
(IEnumerable <SegmentLine> ) -
Initializes a new instance of the
SegmentLineIterator
class.
Properties
- Segment Current
- Gets the current segment.
Methods
-
void Dispose
() -
bool MoveNext
() -
void Reset
()
Extension Methods
-
T And
< Segment Line Iterator> (Action < Segment Line Iterator> ) - 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.