MarkupWriter.WriteHeading Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll
MarkupWriter.WriteHeading(int, Action<MarkupWriter>)Writes a heading in the format of the target document using an optional delegate to write the heading content.
MarkupWriter.WriteHeading(int, string)Writes a heading in the format of the target document using the specified text.

MarkupWriter.WriteHeading(int, Action<MarkupWriter>)

Writes a heading in the format of the target document using an optional delegate to write the heading content.
public abstract 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.

MarkupWriter.WriteHeading(int, string)

Writes a heading in the format of the target document using the specified text.
public void WriteHeading(int level, string text)

Parameters

level int
The heading level (1-6).
text string
The text of the heading.