RedactorConfiguration Class
Provides access to a list of supported formats, built-in and custom user formats.
Inheritance Hierarchy
SystemObject
  GroupDocs.Redaction.ConfigurationRedactorConfiguration

Namespace: GroupDocs.Redaction.Configuration
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 20.7
Syntax
public class RedactorConfiguration

The RedactorConfiguration type exposes the following members.

Properties
  NameDescription
Public propertyAvailableFormats
Gets a list of recognized formats, see DocumentFormatConfiguration.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleFindFormat
Finds format configurations for a given file extension.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberCode exampleGetInstance
Provides a singleton instance with default configuration of built-in formats.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
Learn more
Examples
The following example demonstrates how to add a custom user format handler.
C#
var adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.ExtensionFilter = ".psd";
adobePhotoshopSettings.DocumentType = typeof(MyAdobePhotoshopFormatInstance);
var configuration = RedactorConfiguration.GetInstance();
configuration.AvailableFormats.Add(adobePhotoshopSettings);
Examples
The following example demonstrates how to get built-in or custom user format handlers.
C#
var configuration = RedactorConfiguration.GetInstance();
var formatSettings = configuration.FindFormat(".psd");
See Also