Nevron Open Vision (NOV) Diagram includes the following predefined shape factories and libraries:
- NBasicShapeFactory - creates commonly used basic shapes like rectangles, ellipses, circles, stars, hexagons, etc.
- NConnectorShapeFactory - creates various types of connectors.
- NLibrary.FamilyTree - creates family tree shapes. Pass an ENFamilyTreeShape enum value to the Create method of the library to create a family tree shape.
- NLibrary.Flowchart - creates flowchart shapes. Pass an ENFlowchartingShape enum value to the Create method of the library to create a flowchart shape.
- NLibrary.OrganizationalChart - creates organizational chart (org chart) shapes. Pass an ENOrganizationalShape enum value to the Create method of the library to create an organizational chart shape.
The following code example demonstrates how to create shapes with shape factories and the embeded shape libraries:
| Creating shapes with shape factories and predefined libraries |
Copy Code
|
|---|---|
NBasicShapeFactory factory = new NBasicShapeFactory();
NShape rectangleShape = factory.CreateShape(ENBasicShape.Rectangle);
page.Items.Add(rectangleShape);
NShape decisionShape = NLibrary.Flowchart.CreateShape(ENFlowchartingShape.Decision);
page.Items.Add(decisionShape);
|
|