Table of Contents

Method Write

Namespace
DocWright.Formats.Rtf
Assembly
DocWright.Formats.Rtf.dll

Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)

Writes the document to the stream.

public void Write(IDocWrightDocument document, Stream output, DocumentWriteOptions options, IConversionDiagnostics diagnostics)

Parameters

document IDocWrightDocument

The document to write.

output Stream

The stream to write to, forward-only.

options DocumentWriteOptions

The write options.

diagnostics IConversionDiagnostics

The diagnostics sink.

Exceptions

ArgumentNullException

A required argument is null.

ArgumentException

document is not a DocWright document.

ResourceLimitExceededException

The output exceeded the configured limit.