Esempio n. 1
0
 /// <summary>
 /// Returns an HTML-code representation of the node.
 /// </summary>
 /// <param name="writer">The serialization output target.</param>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Doctype(this));
 }
Esempio n. 2
0
 /// <inheritdoc />
 public string Doctype(IDocumentType doctype) => _formatter.Doctype(doctype);
Esempio n. 3
0
 /// <summary>
 /// Returns an HTML-code representation of the node.
 /// </summary>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override String ToHtml(IMarkupFormatter formatter)
 {
     return formatter.Doctype(this);
 }
Esempio n. 4
0
 /// <summary>
 /// Returns an HTML-code representation of the node.
 /// </summary>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override String ToHtml(IMarkupFormatter formatter)
 {
     return(formatter.Doctype(this));
 }
Esempio n. 5
0
 /// <summary>
 /// Returns an HTML-code representation of the node.
 /// </summary>
 /// <param name="writer">The serialization output target.</param>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Doctype(this));
 }
Esempio n. 6
0
 public string Doctype(IDocumentType doctype)
 {
     return(defaultFormatter.Doctype(doctype));
 }