GroupAttachment
open class GroupAttachment : Attachment
Represents a group attachment. This class overrides Attachment.
-
Initializes a new instance of the GroupAttachment class with the specified master and child nodes and node offset.
Declaration
Swift
public override init(master: DiagramItem, childNode: DiagramNode, nodeOffset: AttachToNode)
Parameters
master
The master item of the group.
childNode
The child node in the group.
nodeOffset
Specifies how child is attached to master. One of the AttachToNode enumeration values.
Return Value
The newly created GroupAttachment object.
-
Initializes a new instance of the GroupAttachment class with the specified master and child nodes and link offset.
Declaration
Swift
public override init(master: DiagramItem, childNode: DiagramNode, linkOffset: AttachToLink)
Parameters
master
The master item of the group.
childNode
The child node in the group.
nodeOffset
Specifies how child is linked to master. One of the AttachToLink enumeration values.
Return Value
The newly created GroupAttachment object.
-
Updates the child node after changes in the master node.
Declaration
Swift
open override func updateFromMaster()