DocumentFormatConfiguration
Contents
[
Hide
]
DocumentFormatConfiguration class
Represents a type reference for DocumentFormatInstance
-derived class and supported file extensions list for faster format detection.
public class DocumentFormatConfiguration
Constructors
Name | Description |
---|---|
DocumentFormatConfiguration() | Initializes a new instance of DocumentFormatConfiguration class. |
Properties
Name | Description |
---|---|
DocumentType { get; set; } | Gets or sets the type of a class, inheriting from DocumentFormatInstance . |
ExtensionFilter { get; set; } | Gets or sets a comma (",") delimited list of file extensions (for example “.pdf”), case insensitive. |
InitializationData { get; set; } | Gets or sets data, required for DocumentFormatInstance initialization. |
Methods
Name | Description |
---|---|
SupportsExtension(string) | Checks if a given file extension can be handled as DocumentType. |
Remarks
Learn more
- More details about GroupDocs.Redaction configuration: Extend supported extensions list
- More details about implementing custom formats: Create custom format handler
Examples
The following example demonstrates how to set properties for a custom format configuration.
var adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.ExtensionFilter = ".psd";
adobePhotoshopSettings.DocumentType = typeof(MyAdobePhotoshopFormatInstance);
See Also
- namespace GroupDocs.Redaction.Configuration
- assembly GroupDocs.Redaction