Class
DocumentFormatProvidersManager

A class responsible for preserving the registered format providers.

Definition

Namespace:Telerik.Windows.Documents.FormatProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
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

cs-api-definition
public static bool AutomaticallyLoadFormatProviders { get; set; }

Property Value

bool

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

FormatProviders

Gets the registered format providers.

Declaration

cs-api-definition
public static IEnumerable<IDocumentFormatProvider> FormatProviders { get; }

Property Value

IEnumerable<IDocumentFormatProvider>

The format providers.

Methods

GetProviderByExtension(string)

Gets the provider for a specific extension.

Declaration

cs-api-definition
public static IDocumentFormatProvider GetProviderByExtension(string extension)

Parameters

extension

string

The extension.

Returns

IDocumentFormatProvider

GetProviderByName(string)

Gets a format provider by its name.

Declaration

cs-api-definition
public static IDocumentFormatProvider GetProviderByName(string providerName)

Parameters

providerName

string

Name of the provider.

Returns

IDocumentFormatProvider

GetSupportedExtensions()

Gets the file extensions of the supported formats.

Declaration

cs-api-definition
public static IEnumerable<string> GetSupportedExtensions()

Returns

IEnumerable<string>

A collection of the extensions.

RegisterFormatProvider(IDocumentFormatProvider)

Registers a format provider.

Declaration

cs-api-definition
public static void RegisterFormatProvider(IDocumentFormatProvider provider)

Parameters

provider

IDocumentFormatProvider

The provider.