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





Proportionally attaches this node to the specified node.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

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

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