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
C# Copy Code |
---|
public bool AttachProportional ( |
Visual Basic Copy Code |
---|
Public Function AttachProportional( _ |
The left side of the node's bounding rectangle, expressed as percent of the main node width.
The top side of the node's bounding rectangle, expressed as percent of the main node height.
The right side of the node's bounding rectangle, expressed as percent of the main node width.
The bottom side of the node's bounding rectangle, expressed as percent of the main node height.
false if the node could not be attached; otherwise, true.
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.