A class responsible for preserving the registered format providers.
Definition
Namespace:Telerik.WinForms.Documents.FormatProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentFormatProvidersManager
Inheritance: objectDocumentFormatProvidersManager
Properties
Gets or sets a value indicating whether MEF should be used to load all format providers automatically.
public static bool AutomaticallyLoadFormatProviders { get; set; }
true if all format providers should be loaded automatically; otherwise, false.
Gets or sets the format provider metadata.
[ImportMany(typeof(IDocumentFormatProvider))]
public IList<Lazy<IDocumentFormatProvider, IDocumentFormatProviderMetadata>> FormatProviderParts { get; set; }
The format provider parts.
FormatProviders
IEnumerable<IDocumentFormatProvider>
Gets the registered format providers.
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }
The format providers.
Methods
Gets the provider for a specific extension.
public static IDocumentFormatProvider GetProviderByExtension(string extension)
The extension.
Returns:Gets a format provider by its name.
public static IDocumentFormatProvider GetProviderByName(string providerName)
Name of the provider.
Returns:Gets the file extensions of the supported formats.
public static IEnumerable<string> GetSupportedExtensions()
IEnumerable<string>
A collection of the extensions.
Registers a format provider.
public static void RegisterFormatProvider(IDocumentFormatProvider provider)
The provider.