HtmlWriter Constructor
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Initializes a new instance of the HtmlWriter class.
public HtmlWriter(TextWriter writer, bool leaveOpen = false)Parameters
writerTextWriter- The TextWriter to write the HTML content to.
leaveOpenbool optional- A value indicating whether the underlying writer should be left open when the HtmlWriter is disposed.
Exceptions
- ArgumentNullException
- Thrown when
writerisnull.

leaveOpenistrue, the underlying TextWriter remains open after the HtmlWriter is disposed. This is useful when managing the writer externally.