コード例 #1
0
ファイル: DocumentType.cs プロジェクト: zanyants/AngleSharp
 /// <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));
 }
コード例 #2
0
 /// <inheritdoc />
 public string Doctype(IDocumentType doctype) => _formatter.Doctype(doctype);
コード例 #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);
 }
コード例 #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));
 }
コード例 #5
0
ファイル: DocumentType.cs プロジェクト: Wojdav/AngleSharp
 /// <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));
 }
コード例 #6
0
 public string Doctype(IDocumentType doctype)
 {
     return(defaultFormatter.Doctype(doctype));
 }