New to Telerik UI for WinFormsStart a free 30-day trial

A class responsible for preserving the registered format providers.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentFormatProvidersManager

Inheritance: objectDocumentFormatProvidersManager

Properties

Gets or sets a value indicating whether MEF should be used to load all format providers automatically.

C#
public static bool AutomaticallyLoadFormatProviders { get; set; }
Property Value:

true if all format providers should be loaded automatically; otherwise, false.

Gets or sets the format provider metadata.

C#
[ImportMany(typeof(IDocumentFormatProvider))]
public IList<Lazy<IDocumentFormatProvider, IDocumentFormatProviderMetadata>> FormatProviderParts { get; set; }
Property Value:

The format provider parts.

Gets the registered format providers.

C#
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }
Property Value:

The format providers.

Methods

Gets the provider for a specific extension.

C#
public static IDocumentFormatProvider GetProviderByExtension(string extension)
Parameters:extensionstring

The extension.

Returns:

IDocumentFormatProvider

Gets a format provider by its name.

C#
public static IDocumentFormatProvider GetProviderByName(string providerName)
Parameters:providerNamestring

Name of the provider.

Returns:

IDocumentFormatProvider

Gets the file extensions of the supported formats.

C#
public static IEnumerable<string> GetSupportedExtensions()
Returns:

IEnumerable<string>

A collection of the extensions.

Registers a format provider.

C#
public static void RegisterFormatProvider(IDocumentFormatProvider provider)
Parameters:providerIDocumentFormatProvider

The provider.