RenderHookScope Class
Represents a render hook scope.
public sealed class RenderHookScope : IDisposable
- Namespace
- Spectre
.Console .Rendering - Interfaces
-
- IDisposable
Constructors
-
RenderHookScope
(IAnsiConsole, IRenderHook) -
Initializes a new instance of the
RenderHookScope
class.
Methods
-
void Dispose
()
Extension Methods
-
T And
< Render Hook Scope> (Action < Render Hook Scope> ) - 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.