Class DocumentFormatProvidersManager
A class responsible for preserving the registered format providers.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.FormatProviders
Assembly: Telerik.Windows.Documents.dll
Syntax
public class DocumentFormatProvidersManager
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.Boolean
|
FormatProviderParts
Gets or sets the format provider metadata.
Declaration
public IList<Lazy<IDocumentFormatProvider, IDocumentFormatProviderMetadata>> FormatProviderParts { get; set; }
Property Value
System.Collections.Generic.IList<System.Lazy<IDocumentFormatProvider, IDocumentFormatProviderMetadata>>
The format provider parts. |
FormatProviders
Gets the registered format providers.
Declaration
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }
Property Value
System.Collections.Generic.IEnumerable<IDocumentFormatProvider>
The format providers. |
Methods
GetProviderByExtension(String)
Gets the provider for a specific extension.
Declaration
public static IDocumentFormatProvider GetProviderByExtension(string extension)
Parameters
System.String
extension
The extension. |
Returns
IDocumentFormatProvider
|
GetProviderByName(String)
Gets a format provider by its name.
Declaration
public static IDocumentFormatProvider GetProviderByName(string providerName)
Parameters
System.String
providerName
Name of the provider. |
Returns
IDocumentFormatProvider
|
GetSupportedExtensions()
Gets the file extensions of the supported formats.
Declaration
public static IEnumerable<string> GetSupportedExtensions()
Returns
System.Collections.Generic.IEnumerable<System.String>
A collection of the extensions. |
RegisterFormatProvider(IDocumentFormatProvider)
Registers a format provider.
Declaration
public static void RegisterFormatProvider(IDocumentFormatProvider provider)
Parameters
IDocumentFormatProvider
provider
The provider. |