ASP.NET Pack Programmer's Guide
Shapes Class
Remarks See Also
 





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

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 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.Shapes

 See Also

Shapes Members
MindFusion.Diagramming Namespace
Table of Predefined Shapes