DocFormatter Class
- Namespace
- Kampute.DocToolkit.Formatters
- Assembly
- Kampute.DocToolkit.dll
Definition
Represents a base class for a documentation formatter.
public abstract class DocFormatter : IDocumentFormatter- Inheritance
- object
- DocFormatter
- Implements
- Inherited by
Remarks
Constructors
| DocFormatter(string) | Initializes a new instance of the DocFormatter class. |
Properties
| FileExtension | Gets the file extension of the documentation files in the target format. |
| TextTransformers | Gets the text transformer registry for the target format. |
| XmlDocTransformer | Gets the XML documentation transformer for the target format. |
Methods
| CreateMarkupWriter(TextWriter, bool) | Creates an instance of MarkupWriter class that wraps the specified writer for encoding content in the target format. |
| CreateMinifier(TextWriter) | Creates a TextWriter instance that wraps the specified writer to minimize the content for target format. |
| Encode(ReadOnlySpan<char>, TextWriter) | Encodes the specified text for the target format and writes it to the specified writer. |
| Transform(TextWriter, XElement) | Writes the transformed content of the XML comment element to the specified TextWriter. |

Derived classes must implement specific formatting logic for their target format by overriding abstract methods like Encode(ReadOnlySpan<char>, TextWriter) and CreateMarkupWriter(TextWriter, bool).