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





Proportionally attaches this node to the specified node.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 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 percentage of main node's width.
percentY1
Top side coordinate of the node, expressed as percentage of main node's height.
percentX2
Right-hand side coordinate of the node, expressed as percentage of main node's width.
percentY2
Bottom side coordinate of the node, expressed as percentage 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 through 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