Search
DiagramNode.AttachTo Method (DiagramNode, Double, Double, Double, Double)
See Also
 





Attaches this node to the specified node in such a way that the ratio between their sizes is kept constant.

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

 Syntax

C#  Copy Code

public void AttachTo (
    DiagramNode node,
    double percentX1,
    double percentY1,
    double percentX2,
    double percentY2
)

Visual Basic  Copy Code

Public Sub AttachTo( _
    node As DiagramNode, _
    percentX1 As Double, _
    percentY1 As Double, _
    percentX2 As Double, _
    percentY2 As Double _
)

 Parameters

node

A reference to the node to which to attach this node.

percentX1

Left-hand side coordinate of the node, expressed as percent of main node's width.

percentY1

Top side coordinate of the node, expressed as percent of main node's height.

percentX2

Right-hand side coordinate of the node, expressed as percent of main node's width.

percentY2

Bottom side coordinate of the node, expressed as percent of main node's height.

 Remarks

This method attaches proportionally the current node to another node. If there isn't a Group instance already associated with the master item, one is created automatically by this method. The group is then accessible by the master's SubordinateGroup property, or this node's MasterGroup property.

The node is attached by calling the AttachProportional method of Group. The attached node maintains its size and position so that it always covers the specified rectangular area of the master node.

 See Also