Member editors are derived from the NMemberEditor class. They are created for each browsable member (property or child-slot) of the node. Member editors that are created for the editing of members that are not nodes (derived from the NNode class), are by default having the PropertyEditor suffix (e.g. NBooleanPropertyEditor, NDoublePropertyEditor etc.).
If not explicitly specified in the designer, the type of the member editor created for a specific member depends on the member type. The following table summarizes the member editors for the different CLR types:
Type | Default Editor |
---|---|
Object | NDefaultPropertyEditor |
Boolean | NBooleanPropertyEditor |
String | NStringPropertyEditor |
Double | NDoublePropertyEditor |
Single | NSinglePropertyEditor |
Int32 | NInt32PropertyEditor |
UInt32 | NUInt32PropertyEditor |
Int64 | NInt64PropertyEditor |
Char | NCharPropertyEditor |
Enumerations | NEnumPropertyEditor |
DateTime | NDateTimePropertyEditor |
TimeSpan | NTimeSpanPropertyEditor |
NNode | NEmbeddedNodeMemberEditor |
The association between a type and the default member editor created for this type can be overridden by the NEditorFactory - SetDefaultMemberEditorFactory static methods. Use them to override existing or define new type-editor associations for any custom types that you want to be visually edited.