HtmlWriter.WriteStartElement Method
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Writes the opening tag of an HTML element with the specified name and attributes.
public virtual void WriteStartElement(string tagName, IEnumerable<KeyValuePair<string, string>> attributes)Parameters
tagNamestring- The name of the tag to write.
attributesIEnumerable<KeyValuePair<string, string>>- The attributes to write on the tag.
Exceptions
- ArgumentException
- Thrown when
tagNameisnullor empty. - ArgumentNullException
- Thrown when
attributesisnull.
