Class HtmlElementMappingsCollection
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
Represents a collection of mappings of HTML elements in PDF.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class HtmlElementMappingsCollection : IEnumerable
- Inheritance
-
HtmlElementMappingsCollection
- Implements
- Inherited Members
Constructors
HtmlElementMappingsCollection()
public HtmlElementMappingsCollection()
Properties
Count
Gets the number of HTML element mappings in this collection.
public int Count { get; }
Property Value
this[int]
Gets the mapping at the specified zero based index from collection.
public HtmlElementMapping this[int index] { get; }
Parameters
index
intThe zero based index of the mapping.
Property Value
- HtmlElementMapping
The mapping at the specified index in collection. Returns null if the index is out of collection bounds.
Methods
GetElementByHtmlId(string)
Gets the mapping in PDF of the HTML element with the specified HTML ID. The search is case insensitive.
public HtmlElementMapping GetElementByHtmlId(string htmlElementId)
Parameters
htmlElementId
stringThe HTML ID of the element.
Returns
- HtmlElementMapping
The mapping in PDF of the specified HTML element or null if no element with the specified ID was found.
GetElementByMappingId(string)
Gets the mapping in PDF of the HTML element with the mapping ID given by the special HTML attribute data-mapping-id. The search is case insensitive.
public HtmlElementMapping GetElementByMappingId(string mappingId)
Parameters
mappingId
stringThe mapping ID of the element given by the data-mapping-id HTML attribute
Returns
- HtmlElementMapping
The mapping in PDF of the specified HTML element or null if no element with the specified mapping ID was found
GetElementsByTagName(string)
Gets the mapping in PDF of the HTML elements with the specified HTML tag name. The search is case insensitive.
public HtmlElementMapping[] GetElementsByTagName(string htmlElementTagName)
Parameters
htmlElementTagName
stringThe HTML tag name of the element.
Returns
- HtmlElementMapping[]
The mappings in PDF of the specified HTML elements or null if no element with the specified tag name was found.
GetEnumerator()
Gets the collection enumerator
public IEnumerator GetEnumerator()
Returns
- IEnumerator
The collection enumerator