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: 19.9
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleFindFormat
Finds format configurations for a given file extension.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberCode exampleGetInstance
Provides a singleton instance with default configuration of built-in formats.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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