Table of Contents

Class Document

Namespace
Hegel
Assembly
Hegel.dll

A Printer of your own, outside any test case: print to Printer and read the laid-out text with Finish().

public sealed class Document : IDisposable
Inheritance
Document
Implements
Inherited Members

Fields

DefaultMaxWidth

The width a document breaks lines at unless MaxWidth says otherwise.

public const int DefaultMaxWidth = 79

Field Value

int

Properties

MaxWidth

The width lines break at. Set it before printing.

public int MaxWidth { get; set; }

Property Value

int

Printer

The document's printer.

public Printer Printer { get; }

Property Value

Printer

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~Document()

Frees the native printer of a document that was neither finished nor disposed.

protected ~Document()

Finish()

The laid-out text; the document is disposed afterwards.

public string Finish()

Returns

string