Search
Group.AttachProportional Method
See Also
 





Attaches a new node to the group, in such a way that its area is always occupying certain percentage of the main item's area.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool AttachProportional (
    DiagramNode node,
    float left,
    float top,
    float right,
    float bottom
)

Visual Basic  Copy Code

Public Function AttachProportional( _
    node As DiagramNode, _
    left As Single, _
    top As Single, _
    right As Single, _
    bottom As Single _
) As Boolean

 Parameters

node

The DiagramNode to be attached.

left
The left side of the node's bounding rectangle, expressed as percent of the main node width.
top
The top side of the node's bounding rectangle, expressed as percent of the main node height.
right
The right side of the node's bounding rectangle, expressed as percent of the main node width.
bottom
The bottom side of the node's bounding rectangle, expressed as percent of the main node height.

 Return Value

false if the node could not be attached; otherwise, true.

 Remarks

You can use this method when the main item of the group is a node. Use the left, top, right and bottom arguments to specify the position and size of the attached node relative to that of the main item. When moving or resizing the main node, the specified ratio between it and the attached node is preserved.

 See Also