TableOfContentsAddEntries Method |
Adds an entry for each element of an element mapping result, in the order the elements appear in the document.
Namespace: ExpertPdf.HtmlToPdf.PdfDocumentAssembly: ephtmltopdf (in ephtmltopdf.dll) Version: 22.0.0
Syntaxpublic void AddEntries(
Document document,
HtmlElementMappingsCollection mappings
)
Public Sub AddEntries (
document As Document,
mappings As HtmlElementMappingsCollection
)
Parameters
- document Document
- The document the elements were rendered in.
- mappings HtmlElementMappingsCollection
- The elements an HTML element or converter mapped (its HtmlElementsMappingOptions.HtmlElementsMappingResult),
for example the elements matched by the "h1", "h2" and "h3" selectors.
Remarks
The entry text is the element text and the entry points to the top of the element. The level comes from the tag
name: h1 is level 1, h2 level 2 and so on; any other element is level 1. Elements already listed (on the same page,
at the same position) are not added twice.
See Also