FindFormat

RedactorConfiguration.FindFormat method

Finds format configurations for a given file extension.

public DocumentFormatConfiguration FindFormat(string fileExtension)
Parameter Type Description
fileExtension String File extension, format is “.ext”

Return Value

If found, instance of DocumentFormatConfiguration, null otherwise

Examples

The following example demonstrates how to get built-in or custom user format handlers.

var configuration = RedactorConfiguration.GetInstance();
var formatSettings = configuration.FindFormat(".psd");

See Also