Xamarin Pack Programmer's Guide
ShapeNode Class
Remarks See Also
 






ShapeNode instances are diagram nodes that represent geometric shapes.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public class ShapeNode : DiagramNode, InplaceEditable

Visual Basic  Copy Code

Public Class ShapeNode
    Inherits DiagramNode
    Implements InplaceEditable

 Remarks

A ShapeNode instance represents nodes in graphs, tree, process diagrams, and so on.

The shape of a node is specified through the Shape property. Shapes can be rotated, either interactively using the rotation handle above the node, or programmatically using the RotationAngle property.

Shape nodes can display images and text. Set an image to be painted inside a node by assigning it to the Image property. The position of the image within the node and its alignment are set by the ImageAlign property.

Text inside a shape node is represented by the Text property. Its attributes can be changed by the TextBrush and TextFormat properties.

To let users edit a node's text inline, call the BeginEdit method of Diagram. Call EndEdit to exit in-place editing mode.

Fill and border colors can be specified by setting the Pen and Brush properties. Shape nodes can be transparent as set through the Transparent property.

Shape nodes can have incoming and outgoing DiagramLink objects accessible through the IncomingLinks and OutgoingLinks properties defined in the DiagramNode class.

 Inheritance Hierarchy

System.Object
    Xamarin.Forms.BindableObject
        MindFusion.Diagramming.DiagramItem
            MindFusion.Diagramming.DiagramNode
                MindFusion.Diagramming.ShapeNode

 See Also

ShapeNode Members
MindFusion.Diagramming Namespace