Back to Devexpress

FileTypeFiltersNodesGenerator Class

expressappframework-devexpress-dot-expressapp-dot-fileattachments-dot-win-cddaec54.md

latest3.5 KB
Original Source

FileTypeFiltersNodesGenerator Class

A Nodes Generator that generates the content of the IModelFileTypeFilters node.

Namespace : DevExpress.ExpressApp.FileAttachments.Win

Assembly : DevExpress.ExpressApp.FileAttachment.Win.v25.2.dll

NuGet Package : DevExpress.ExpressApp.FileAttachment.Win

Declaration

csharp
public class FileTypeFiltersNodesGenerator :
    ModelNodesGeneratorBase
vb
Public Class FileTypeFiltersNodesGenerator
    Inherits ModelNodesGeneratorBase

Remarks

This class is a ModelNodesGeneratorBase descendant, that generates child nodes of a BOModel | <Class> | FileTypeFilters node. It collects FileTypeFilterAttribute attributes applied in the code of business classes, and adds corresponding IModelFileTypeFilter nodes.

To customize the content of the FileTypeFilters node, implement a Generator Updater for this Nodes Generator by inheriting the ModelNodesGeneratorUpdater<T> class in the following manner:

csharp
public class Updater : ModelNodesGeneratorUpdater<FileTypeFiltersNodesGenerator> {
    public override void UpdateNode(ModelNode node) {
        // Cast the 'node' parameter to IModelFileTypeFilters
        // to access the FileTypeFilters node.
    }
}

This Generator Updater above should be registered within the overridden ModuleBase.AddGeneratorUpdaters method.

For a complete list of available Nodes Generators, refer to the Built-in Nodes Generators topic.

Inheritance

Object ModelNodesGeneratorBase FileTypeFiltersNodesGenerator

See Also

FileTypeFiltersNodesGenerator Members

Read and Set Values for Built-in Application Model Nodes in Code

File Attachments (Store Custom Files)

DevExpress.ExpressApp.FileAttachments.Win Namespace