Documentation
Table of Contents

Method Add

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

Add(IDocumentFormat)

Registers a format for its extensions. A format whose name is already registered (compared ignoring case) is ignored, so two packages may both add "yaml".

public void Add(IDocumentFormat format)

Parameters

format IDocumentFormat

The format to register.

Exceptions

ArgumentNullException

format is null.

ArgumentException

The format's name is blank, it lists no extension, an extension is blank or does not start with a dot, or an extension is already registered to a format with another name. Nothing is registered.