Class ResourceCollectionEditor
Provides a user interface editor that displays a dialog for editing a collection of resources, supporting drag and drop of compatible file extensions.
public class ResourceCollectionEditor : CollectionEditor
- Inheritance
-
ResourceCollectionEditor
- Inherited Members
Constructors
ResourceCollectionEditor(Type)
Initializes a new instance of the ResourceCollectionEditor class using the specified collection type.
public ResourceCollectionEditor(Type type)
Parameters
type
TypeThe type of the collection for this editor to edit.
Properties
SupportedExtensions
Gets the file extensions that support drag and drop into the collection editor.
protected string[] SupportedExtensions { get; }
Property Value
- string[]
Methods
CreateEditorDialog()
Creates a new dialog to display and edit the current collection.
protected override CollectionEditorDialog CreateEditorDialog()
Returns
- CollectionEditorDialog
A CollectionEditorDialog to provide as a user interface for editing the collection.
CreateResourceConfiguration(string)
Creates a new resource configuration object from a specified file name.
protected virtual object CreateResourceConfiguration(string fileName)
Parameters
fileName
stringThe name of the file from which the resource configuration object should be created.
Returns
- object
A new resource configuration object to be added to the collection.
CreateSupportedExtensions()
Gets the file extensions that support drag and drop into the collection editor.
protected virtual string[] CreateSupportedExtensions()
Returns
- string[]
The array of file extensions that support drag and drop into the collection editor.