Skip to main content

IViewDefinitions interface

Namespace: NextDesign.Core

Description

This is an access object to the view definition management object.

Area you belong to

NameDescription
ProfileA group of APIs to access profiles.

Property

NameDescription
EditorsEditor definition list

Method

NameDescription
FindEditorDefByClassFinds the editor view definition defined for the specified class.
FindElementDefByClassFinds the editor element definition corresponding to the specified model class from the given editor definitions.
NewCustomEditorDefGenerates a custom editor definition for the specified model class.
NewCustomElementDefGenerates a custom editor element definition for the specified model class.
NewEditorDefGenerates an editor definition for the specified model class.
NewElementDefGenerates an editor element definition for the specified model class.
RegisterCompartmentItemTextValueCallbackCallback function to get/set the value of the specified compartment item of the editor element generated from the specified editor element definition Register.
・Recommended to call when activating the extension.
・The registered value acquisition callback function is called as follows.
・A compartment item is displayed
・The field value of the model referenced by a compartment item has been changed
RegisterGetCompartmentItemTextStyleCallback(IElementDef,string,Func<INode, int, string, IModel, IStyleProperty, object>,StyleAttributes)Registers a style value retrieval function for the specified compartment item of the editor element generated from the specified editor element definition, with the specified style attribute.
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Registration The callback function is called as follows.
・A compartment item is displayed
・The field value of the model referenced by a compartment item has been changed
RegisterGetCompartmentItemTextStyleCallback(IElementDef,string,Func<INode, int, string, IModel, IStyleProperty, object>)Registers a style value acquisition callback function for the specified compartment item of the editor element generated from the specified editor element definition.
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Registration The callback function is called as follows.
・A compartment item is displayed
・The field value of the model referenced by a compartment item has been changed
RegisterGetStyleCallback(IElementDef,Func<IEditorElement, IModel, IStyleProperty, object>,StyleAttributes)Specify style attributes to register a style value acquisition callback function for the editor element generated from the specified editor element definition.
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Title If you want to change the text color, redefine the text color in the callback function of this method.
・The registered callback function is called as follows.
 ・Editor element is displayed
 ・Field value of the model referenced by editor element has been changed
RegisterGetStyleCallback(IElementDef,Func<IEditorElement, IModel, IStyleProperty, object>)Specified editor element definition Registers a style value acquisition callback function for editor elements generated by .
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Title If you want to change the text color, redefine the text color in the callback function of this method.
・The registered callback function is called as follows.
 ・Editor element is displayed
 ・Field value of the model referenced by editor element has been changed
RegisterGetTextStyleCallback(IElementDef,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>,StyleAttributes)Registers a callback function to get the style value of the specified text of the editor element generated from the specified editor element definition, with the specified style attribute.
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Title If you want to change the text color, redefine the text color in the RegisterGetStyleCallback callback function.
・The registered callback function is called as follows.
 ・Editor element is displayed
 ・Field value of the model referenced by editor element has been changed
RegisterGetTextStyleCallback(IElementDef,TextTypes,Func<IShape, TextTypes, string, IModel, IStyleProperty, object>)Registers a callback function to get the style value of the specified text of the editor element generated from the specified editor element definition.
・Recommended to call when activating the extension.
・Style values ​​are obtained in the following order of priority.
1. Callback function value for style value acquisition
2. Style value set in the view instance
3. Style value defined in the view definition
・Title If you want to change the text color, redefine the text color in the RegisterGetStyleCallback callback function.
・The registered callback function is called as follows.
 ・Editor element is displayed
 ・Field value of the model referenced by editor element has been changed
RegisterTextValueCallbackCallback function to get/set the value of the specified text of the editor element generated from the specified editor element definition. I will register.
・Recommended to call when activating the extension.
・The registered value acquisition callback function is called as follows.
・The editor element is displayed
・In the model referenced by the editor element, a field value that matches the path of the view definition is changed
UnregisterStyleCallbackUnregisters all callback functions for editor elements generated from the specified editor element definition.
・Recommended to call when deactivating the extension.