RedactorConfiguration
Leave feedback
On this page
Provides access to a list of supported formats, built-in and custom user formats.
public class RedactorConfiguration
| Name | Description |
|---|---|
| AvailableFormats { get; } | Gets a list of recognized formats, see DocumentFormatConfiguration. |
| Name | Description |
|---|---|
| static GetInstance() | Provides a singleton instance with default configuration of built-in formats. |
| FindFormat(string) | Finds format configurations for a given file extension. |
Learn more
- More details about GroupDocs.Redaction configuration: Extend supported extensions list
- More details about implementing custom formats: Create custom format handler
The following example demonstrates how to add a custom user format handler.
var adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.ExtensionFilter = ".psd";
adobePhotoshopSettings.DocumentType = typeof(MyAdobePhotoshopFormatInstance);
var configuration = RedactorConfiguration.GetInstance();
configuration.AvailableFormats.Add(adobePhotoshopSettings);
The following example demonstrates how to get built-in or custom user format handlers.
var configuration = RedactorConfiguration.GetInstance();
var formatSettings = configuration.FindFormat(".psd");
- namespace GroupDocs.Redaction.Configuration
- assembly GroupDocs.Redaction
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.