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





ShapeNode instances are diagram nodes that represent geometric shapes.

Namespace: MindFusion.Diagramming
Package: ShapeNode.js

 Syntax

JavaScript  Copy Code

// class
ShapeNode.prototype = {}

 Remarks

ShapeNode instance might represent nodes in graphs, tree, process diagrams, and so on. The default shape of nodes in the Diagram is specified by the setDefaultShape property. Shapes can be rotated, either interactively using the rotation handle above the node, or programmatically using the setRotationAngle property. Shape nodes can display images and text. Set an image to be painted inside a node by calling the setImageLocation function. The position of the image within the node as well as its alignment are set by the setImageAlign method.

Text inside a shape node is represented by the Text property. Its attributes can be changed by the TextColor and Font properties. To get even richer text formatting, set EnableStyledText to true and embed HTML-like formatting tags in the raw text. To make a node big enough to display its text without clipping, call resizeToFitText.

 See Also

ShapeNode Members
MindFusion.Diagramming Namespace