Table of Contents

Class DdlWriter

Namespace
MigraDoc.DocumentObjectModel.IO
Assembly
MigraDoc.DocumentObjectModel.dll

Represents the MigraDoc DDL writer.

public sealed class DdlWriter
Inheritance
object
DdlWriter

Constructors

DdlWriter(Stream)

Initializes a new instance of the DdlWriter class with the specified Stream.

DdlWriter(TextWriter)

Initializes a new instance of the DdlWriter class with the specified TextWriter.

DdlWriter(string)

Initializes a new instance of the DdlWriter class with the specified filename.

Properties

Indent

Gets or sets the indentation for the DDL file.

InitialIndent

Gets or sets the initial indentation for the DDL file.

Methods

Close()

Closes the underlying serializer and text writer.

Flush()

Flushes the underlying TextWriter.

WriteDocument(DocumentObject)

Writes the specified DocumentObject to DDL.

WriteDocument(DocumentObjectCollection)

Writes the specified DocumentObjectCollection to DDL.

WriteToFile(DocumentObject, string)

Writes a document object to a DDL file.

WriteToFile(DocumentObject, string, int)

Writes a document object to a DDL file. Indent a new block by the specified number of characters.

WriteToFile(DocumentObject, string, int, int)

Writes a DocumentObject type object to a DDL file. Indent a new block by indent + initialIndent characters.

WriteToFile(DocumentObjectCollection, string)

Writes a DocumentObjectCollection type object to a DDL file.

WriteToFile(DocumentObjectCollection, string, int)

Writes a DocumentObjectCollection type object to a DDL file. Indent a new block by indent + initialIndent characters.

WriteToFile(DocumentObjectCollection, string, int, int)

Writes a DocumentObjectCollection type object to a DDL file. Indent a new block by indent + initialIndent characters.

WriteToString(DocumentObject)

Writes a DocumentObject type object to string.

WriteToString(DocumentObject, int)

Writes a DocumentObject type object to string. Indent a new block by indent characters.

WriteToString(DocumentObject, int, int)

Writes a DocumentObject type object to string. Indent a new block by indent + initialIndent characters.

WriteToString(DocumentObjectCollection)

Writes a DocumentObjectCollection type object to string.

WriteToString(DocumentObjectCollection, int)

Writes a DocumentObjectCollection type object to string. Indent a new block by _indent characters.

WriteToString(DocumentObjectCollection, int, int)

Writes a DocumentObjectCollection type object to string. Indent a new block by indent + initialIndent characters.