TextTransformerRegistry.Remove Method

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll
TextTransformerRegistry.Remove<TTransformer>()Removes all registered transformers of the specified type.
TextTransformerRegistry.Remove(string)Removes a registered transformer for the specified file extension.

TextTransformerRegistry.Remove<TTransformer>()

Removes all registered transformers of the specified type.
public void Remove<TTransformer>()
	where TTransformer : ITextTransformer

Type Parameters

TTransformer
The type of the text transformer to remove.

TextTransformerRegistry.Remove(string)

Removes a registered transformer for the specified file extension.
public bool Remove(string fileExtension)

Parameters

fileExtension string
The file extension (including the leading period) of the source format.

Returns

bool
true if the transformer was found and removed; otherwise, false.