HtmlWriter.WriteHeading Method
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Writes a heading using the provided delegate to write the content.
public override void WriteHeading(int level, Action<MarkupWriter> contentHandler)Parameters
levelint- The heading level (1-6).
contentHandlerAction<MarkupWriter>- The action to write the content of the heading.
Exceptions
- ArgumentNullException
- Thrown when
contentHandlerisnull. - ArgumentOutOfRangeException
- Thrown when
levelis less than 1 or greater than 6.
