Class DocumentFormatProvidersManager
A class responsible for preserving the registered format providers.
Inheritance
Namespace: Telerik.Windows.Documents.FormatProviders
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class DocumentFormatProvidersManager : Object
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
System.
|
FormatProviders
Gets the registered format providers.
Declaration
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }
Property Value
System. The format providers. |
Methods
GetProviderByExtension(String)
Gets the provider for a specific extension.
Declaration
public static IDocumentFormatProvider GetProviderByExtension(string extension)
Parameters
System. The extension. |
Returns
GetProviderByName(String)
Gets a format provider by its name.
Declaration
public static IDocumentFormatProvider GetProviderByName(string providerName)
Parameters
System. Name of the provider. |
Returns
GetSupportedExtensions()
Gets the file extensions of the supported formats.
Declaration
public static IEnumerable<string> GetSupportedExtensions()
Returns
System. A collection of the extensions. |
RegisterFormatProvider(IDocumentFormatProvider)
Registers a format provider.
Declaration
public static void RegisterFormatProvider(IDocumentFormatProvider provider)
Parameters
IDocument The provider. |