Attaches this node to the specified node in such a way that the ratio between their sizes is kept constant.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public void AttachTo ( |
Visual Basic Copy Code |
---|
Public Sub AttachTo( _ |
A reference to the node to which to attach this node.
Left-hand side coordinate of the node, expressed as percent of main node's width.
Top side coordinate of the node, expressed as percent of main node's height.
Right-hand side coordinate of the node, expressed as percent of main node's width.
Bottom side coordinate of the node, expressed as percent of main node's height.
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 by 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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |