Skip to main content

IDiagram interface

Namespace: NextDesign.Core

Description

An access object to the diagram editor information. If the EditorType of IEditor is "ERDiagram" or "TreeDiagram", you can access the information specific to the diagram editor by casting to this interface type.

Affiliation area

NameDescription
EditorAPIs to access the editor.

Inherit Base

NameDescription
IEditorAccess object for editor information.

Property

NameDescription
ConnectorsConnector Shape List
NodesNode Shape List
ShapesShape List

Method

NameDescription
GetChildNodesGets the child nodes of the specified node.
Returns an empty collection if the corresponding node does not exist.
GetConnectorByNodeGets the connector connected to the specified node.
Returns an empty collection if no such connector exists.
GetSelectedShapesGets the shape selected in the editor.
Returns an empty collection if the selected shape does not exist.
GetShapeByIdGets the shape of the specified identifier.
Returns null if the shape of the corresponding identifier does not exist.
GetShapesByModelGets the shape that corresponds to the specified model.
Returns an empty collection if the corresponding shape does not exist.
Relocate()Relocate all nodes.
Relocate(IEnumerable <INode>)Relocate the specified node.
Reroute(bool, IEnumerable <IConnector>)Recalculates the route of the specified connector.
This process can be time consuming. If the target of the route calculation includes an orthogonal polygonal line, it may be possible to speed up the calculation process by specifying "false" in the argument "avoidOverlap".
Reroute(bool)Recalculate the routes for all connectors on this diagram.
This process can be time consuming. If the target of the route calculation includes an orthogonal polygonal line, it may be possible to speed up the calculation process by specifying "false" in the argument "avoidOverlap".