Editor

Editor(Action<Stream>, IDocumentFormat)

Initializes a new instance of the Editor class and creates a new empty document based on the specified format.

public Editor(Action<Stream> newDocumentAction, IDocumentFormat format)
Parameter Type Description
newDocumentAction Action`1 delegate that allows saving or performing some action with a stream of the new document.
format IDocumentFormat represents the file format of the document that will be created.

Remarks

Learn more

See Also


Editor(Func<Stream>)

Initializes new Editor instance with specified input document (as a stream)

public Editor(Func<Stream> document)
Parameter Type Description
document Func`1 Delegate, that should return a stream with document content. Should not be NULL.

Remarks

Learn more

See Also


Editor(Func<Stream>, Func<ILoadOptions>)

Initializes new Editor instance with specified input document (as a stream) with its load options

public Editor(Func<Stream> document, Func<ILoadOptions> loadOptions)
Parameter Type Description
document Func`1 Delegate, that should return a stream with document content. Should not be NULL.
loadOptions Func`1 Delegate, that should return a document load options. May be NULL and may return null - in that case document type will be detected automatically and default load options for that type will be applied.

Remarks

Learn more

See Also


Editor(string)

Initializes new Editor instance with specified input document (as a full file path)

public Editor(string filePath)
Parameter Type Description
filePath String Full path to the file. Should not be NULL. Should be valid, and file should exist.

Remarks

Learn more

See Also


Editor(string, Func<ILoadOptions>)

Initializes new Editor instance with specified input document (as a full file path) with its load options

public Editor(string filePath, Func<ILoadOptions> loadOptions)
Parameter Type Description
filePath String Full path to the file. Should not be NULL. Should be valid, and file should exist.
loadOptions Func`1 Delegate, that should return a document load options. May be NULL and may return null - in that case document type will be detected automatically and default load options for that type will be applied.

Remarks

Learn more

See Also