MindFusion.Wpf Pack Programmer's Guide
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.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

Public Function AttachProportional( _
    node As DiagramNode, _
    left As Double, _
    top As Double, _
    right As Double, _
    bottom As Double _
) 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

Group Members
Group Class
MindFusion.Diagramming.Wpf Namespace
AttachToCorner Method