The diagram control is used for creating diagrams like flow charts, organizational charts, mind maps, floor plans, and swim lane diagrams, either through code or through a visual interface that is similar to Visio.
Nodes are used to host graphical objects (paths or controls) that can be arranged and manipulated on a diagram page.
The relationship between two nodes is represented using a connector. Multiple instances of nodes and connectors form a diagram. Some of the key features are listed below.
Different types of segments are available to connect between objects.
Bridging is a visual indication of overlapping between two connectors.
Orthogonal connectors take a smart path that avoids overlapping with nodes to which it is connected.
Arrows or decorators at the edges of connectors are used to represent relationships between nodes.
The corner radius can be specified for edges in connectors.
Ports are specific points in a node to which a connector can be connected.
Labels are used to annotate nodes and connectors. Diagram also makes it easy to edit and align labels relative to the object to which they are mapped.
Interactive features are used to improve the runtime editing experience of a diagram. You can easily edit a diagram with mouse, touch screen, or keyboard interfaces.
Objects can be selected and then dragged, resized, or rotated.
Objects can be aligned easily against gridlines or neighboring objects.
All common actions can also be performed through keyboard input.
Connect tool can be used to create a connection between two nodes, ports, or points.
A connector’s route can be manually edited by dragging thumbs that are visible after selection.
Large diagrams can be explored using the zoom and pan tool.
Multiple nodes or connectors can be grouped together to form a single object called a group.
Drawing tool enables users to draw custom nodes and shapes by clicking and dragging on the diagram surface.
Data binding is used to populate diagrams with nodes and connectors created and positioned based on data from external data sources. Data in any format can be easily converted, mapped, and consumed in the diagram by setting a few properties, without having to write any code. Diagram also supports loading data from an ObservableCollection, List, or IEnumerable collection.
Diagram control has a predefined set of commands. Some standard commands are mapped to keyboard shortcuts. It is also possible to configure new commands and key combinations.
Automatic layout is used to arrange nodes automatically based on a predefined layout logic. There is built-in support for organization chart layout, hierarchical tree layout, and radial tree layout.
Overview control is used to improve the navigation experience when exploring large diagrams. It displays a small preview and allows performing operations such as zooming and panning within it.
The symbol palette is a gallery of reusable symbols/nodes that can be dragged and dropped on to the surface of the diagram.
It is possible to work with very large numbers of nodes since the diagram uses UI-virtualization techniques to selectively load only the objects that lie within the viewport area. Smooth scrolling performance is achieved using a built-in spatial search algorithm that builds an index based on a node’s position.
Diagram’s state can be persisted to XML format and then be loaded back using serialization.
Rulers are used to measure the distance of nodes and connectors from the origin of the page. The size and position of objects can also be specified in different units like pixels, inches, and centimeters.
Every static text in control can be localized to any desired language.
Diagrams can be easily exported as image files (.png, .jpeg, .bmp formats) and can also be printed as a document.
There are several other features available to enhance the diagramming experience.
Gridlines provide guidance when trying to align objects.
The drawing surface can be given a page-like appearance using page size, orientation, and margin.
Frequently used commands can be easily mapped to the user-handle.
Frequently used commands can be easily mapped to the context menu.
Diagram builder is a diagramming application created using the diagram control. It is used to create, edit, save, export, and print diagrams. It has a symbol palette, property editor, overview window, toolbox, and menu to provide a great editing experience.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.