Search
Shapes Class
Remarks See Also
 





Provides alternative method of access to the WpfDiagram predefined shapes, that allows code completion and IntelliSense support, which is not available when using Shape.FromId.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public class Shapes

Visual Basic  Copy Code

Public Class Shapes

 Remarks

The accessor properties are generating using the following code:

C#  Copy Code

TextWriter writer = new StreamWriter(@"D:\shapes.txt");
foreach (Shape shape in Shape.Shapes)
{
    writer.WriteLine("static public Shape " + shape.Id);
    writer.WriteLine("{");
    writer.WriteLine("\tget { return Shape.FromId(\"" + shape.Id + "\"); }");
    writer.WriteLine("}");
    writer.WriteLine();
    writer.Flush();
}

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Wpf.Shapes

 See Also