ClassDocumentFormatProvidersManager
A class responsible for preserving the registered format providers.
Definition
Namespace:Telerik.Windows.Documents.FormatProviders
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentFormatProvidersManager
Inheritance: objectDocumentFormatProvidersManager
Properties
AutomaticallyLoadFormatProviders
Gets or sets a value indicating whether MEF should be used to load all format providers automatically.
Declaration
public static bool AutomaticallyLoadFormatProviders { get; set; }
Property Value
true if all format providers should be loaded automatically; otherwise, false.
FormatProviders
Gets the registered format providers.
Declaration
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }
Property Value
IEnumerable<IDocumentFormatProvider>
The format providers.
Methods
GetProviderByExtension(string)
Gets the provider for a specific extension.
Declaration
public static IDocumentFormatProvider GetProviderByExtension(string extension)
Parameters
extension
The extension.
Returns
GetProviderByName(string)
Gets a format provider by its name.
Declaration
public static IDocumentFormatProvider GetProviderByName(string providerName)
Parameters
providerName
Name of the provider.
Returns
GetSupportedExtensions()
Gets the file extensions of the supported formats.
Declaration
public static IEnumerable<string> GetSupportedExtensions()
Returns
A collection of the extensions.
RegisterFormatProvider(IDocumentFormatProvider)
Registers a format provider.
Declaration
public static void RegisterFormatProvider(IDocumentFormatProvider provider)
Parameters
provider
The provider.