Class PlainTextDocumentRenderer
An IDocumentRenderer<T> which writes to a TextWriter and discards all annotations.
Inheritance
- Object
- PlainTextDocumentRenderer<Object>
- PlainTextDocumentRenderer
Implements
Inherited Members
- PlainTextDocumentRenderer<Object>.Text(ReadOnlyMemory<Char>, CancellationToken)
- PlainTextDocumentRenderer<Object>.NewLine(CancellationToken)
- PlainTextDocumentRenderer<Object>.WhiteSpace(Int32, CancellationToken)
- PlainTextDocumentRenderer<Object>.PushAnnotation(Object, CancellationToken)
- PlainTextDocumentRenderer<Object>.PopAnnotation(CancellationToken)
- PlainTextDocumentRenderer<Object>.Writer
Declaration
public class PlainTextDocumentRenderer : PlainTextDocumentRenderer<object>, IDocumentRenderer<object>
Remarks
This is a convenient subclass of PlainTextDocumentRenderer<T> which simply sets the type parameter to Object, without changing any behaviours.
Constructors
PlainTextDocumentRenderer(TextWriter)
Create a PlainTextDocumentRenderer
Declaration
public PlainTextDocumentRenderer(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
writer |
The output TextWriter |