TypeDescriptor.AddEditorTable(Type, Hashtable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an editor table for the given editor base type.
public:
static void AddEditorTable(Type ^ editorBaseType, System::Collections::Hashtable ^ table);
public static void AddEditorTable (Type editorBaseType, System.Collections.Hashtable table);
static member AddEditorTable : Type * System.Collections.Hashtable -> unit
Public Shared Sub AddEditorTable (editorBaseType As Type, table As Hashtable)
Parameters
- editorBaseType
- Type
The editor base type to add the editor table for. If a table already exists for this type, this method will do nothing.
Remarks
The AddEditorTable method adds an editor table for the given editor base type. Typically, editors are specified as metadata on a component. However, if no metadata for a requested editor base type can be found on the component, the associated TypeDescriptor will search an editor table for the editor type, if one can be found. Once an editor table has been added to a type descriptor, it cannot be removed and is owned by the type descriptor. The type descriptor may freely make modifications to this table.
The format for an editor table uses data types as keys and editors as values. The value portion of an entry in the table represents an editor instance. It can have one of three values. If it contains a string, the type descriptor will assume this is a fully qualified name of a type, and then load the type for the object. If it contains a type, an instance of this type will be created to obtain an editor. Finally, the value portion may contain an actual editor instance. If the type descriptor resolves an editor to an instance, it will store the instance back into the table for future use.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om