Often it is required to arrange the editors in a certain category. To do that you assign an object that implements the INEditorComparer interface to this category via the NDesigner – SetCategoryEditorsComparer method. NOV provides several default implementations of the INEditorComparer interface, that are exposed as static members of the NEditorComparer class. The following table outlines the predefined editor comparers:
NEditorComparer static member | Description |
---|---|
DeclarationOrder | orders editors by their declaration order – e.g. the order in which they are declared in the node schema. |
DisplayOrder | orders the member editors according to their display order. The display order of a member is a user-defined value, specified by the NDesigner – SetMemberDisplayOrder. In this way, you can define a custom ordering of the member editors. |
TitleOriginalOrder | orders the member editors according to their original (non translated) title. Each editor has a title, which for member editors is the name of the property/child with inserted spaces before upper letters and digits. You can set a custom title to a member via the NDesigner – SetMemberDisplayName method. |
TitleTranslatedOrder | orders the member editors according to their translated title. |