e9ac4d96 5f59 77ba 0e10 f3560df9576b - autumn009/NestedHtmlWriter GitHub Wiki

NhDocument Constructor (TextWriter, NhDocumentType)

NhDocument class constructor automatically create XML declalation and DOCTYPE declalation

Namespace: NestedHtmlWriter
Assembly: NestedHtmlWriterPortable (in NestedHtmlWriterPortable.dll) Version: 1.0.6152.32515 (1.0.0.0)

Syntax

C#

public NhDocument(
	TextWriter writer,
	NhDocumentType documentType
)

VB

Public Sub New ( 
	writer As TextWriter,
	documentType As NhDocumentType
)

C++

public:
NhDocument(
	TextWriter^ writer, 
	NhDocumentType documentType
)

F#

new : 
        writer : TextWriter * 
        documentType : NhDocumentType -> NhDocument

Parameters

 

writer
Type: System.IO.TextWriter
writer for output
documentType
Type: NestedHtmlWriter.NhDocumentType
type of document

Remarks

in case of type of documents, follow text will output. In case of NhDocumentType.Xhtml11 In case of NhDocumentType.Xhtml10Strict In case of NhDocumentType.Xhtml10Transitional In case of NhDocumentType.Html5

See Also

Reference

NhDocument Class
NhDocument Overload
NestedHtmlWriter Namespace

⚠️ **GitHub.com Fallback** ⚠️