MarkdownWriter.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

level int
The heading level (1-6).
contentHandler Action<MarkupWriter>
The action to write the content of the heading.

Exceptions

ArgumentNullException
Thrown when contentHandler is null.
ArgumentOutOfRangeException
Thrown when level is less than 1 or greater than 6.