Initializes a new instance of the Shape class with the specified outline.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public Shape ( |
Visual Basic Copy Code |
---|
Public New ( _ |
An array of shape template elements that define the outline of a shape. Can contain lines, arcs and Bézier curves.
Specifies how areas are filled if the outline path intersects itself.
C# Copy Code |
---|
diagram.DefaultShape = new Shape( new ElementTemplate[] { new LineTemplate(0, 100, 35, 0), new LineTemplate(35, 0, 100, 0), new LineTemplate(100, 0, 65, 100), new LineTemplate(65, 100, 0, 100) }, FillRule.EvenOdd); |
Visual Basic Copy Code |
---|
diagram.DefaultShape = new Shape( _ new ElementTemplate() { _ new LineTemplate(0, 100, 35, 0), _ new LineTemplate(35, 0, 100, 0), _ new LineTemplate(100, 0, 65, 100), _ new LineTemplate(65, 100, 0, 100) }, _ FillRule.EvenOdd) |
WpfDiagram Programmer's Guide | © 2024 MindFusion |