Example #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));
 }
Example #2
0
 /// <inheritdoc />
 public string Doctype(IDocumentType doctype) => _formatter.Doctype(doctype);
Example #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);
 }
Example #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));
 }
Example #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));
 }
Example #6
0
 public string Doctype(IDocumentType doctype)
 {
     return(defaultFormatter.Doctype(doctype));
 }