Struct LineScrollWindow.Enumerator
Value-type enumerator for visible lines in a LineScrollWindow.
Implements the duck-typed foreach pattern (MoveNext, Current,
Dispose) so that foreach (var line in window) works without boxing
the enumerator through IEnumerator<VisualLine>.
Implements
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public struct LineScrollWindow.Enumerator : IDisposable
Constructors
Enumerator(LineScrollWindow)
Initializes a new enumerator.
Declaration
public Enumerator(LineScrollWindow window)
Parameters
| Type | Name | Description |
|---|---|---|
| LineScrollWindow | window | The window to enumerate. |
Properties
Current
Gets the current visual line.
Declaration
public VisualLine Current { get; }
Property Value
| Type | Description |
|---|---|
| VisualLine |
Methods
Dispose()
No-op disposal. Satisfies the IDisposable contract required by the
foreach statement without performing any actual cleanup, since this enumerator
holds no unmanaged resources.
Declaration
public void Dispose()
MoveNext()
Advances to the next line.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool | True if there are more lines. |