Method TryGet
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
TryGet(DocumentId, out IDocumentFormat?)
Finds the format registered for id's extension.
public bool TryGet(DocumentId id, out IDocumentFormat? format)
Parameters
idDocumentIdThe document.
formatIDocumentFormatThe format, when one is registered for the extension; otherwise null.
Returns
- bool
True when a format is registered for the extension.
Exceptions
- ArgumentException
A default DocumentId, which names no document.