Node
A Node is a Part to which Links may connect and which may be a member of a Group.
Erbt von: Part
Konstruktoren
Node()
Constructs a Node.
Eigenschaften
Avoidable : bool
Gets or sets whether this node should be avoided when routing orthogonal links that have Routing is AvoidsNodes.
AvoidableMargin : Thickness
Gets or sets the margin around this node that should be reserved when routing orthogonal links that have Routing is AvoidsNodes.
ContainingGroups : IEnumerable<Group>
Get a collection of Groups of which this part is a member.
ContainingSubGraph : Group
Get the group Group that this part is a member of, if any.
Id : string
Gets or sets the string identifier used by the PartsModel to resolve references from other parts in the PartsModel.
IsExpandedTree : bool
Gets or sets whether this node is considered "expanded" with respect to showing/hiding nodes that it connects to.
IsLinkLabel : bool
Gets whether this node represents a label node for a link.
LabeledLink : Link
If this node is a label for a link, return that Link.
LinksConnected : IEnumerable<Link>
Gets a collection of Links that are connected to this node.
LinksInto : IEnumerable<Link>
Gets a collection of Links that come into this node.
LinksOutOf : IEnumerable<Link>
Gets a collection of Links that go out of this node.
LocationElement : FrameworkElement
Gets the FrameworkElement that determines the location of this node.
LocationElementName : string
Gets or sets the name of the element whose position defines the location for this node.
LocationSpot : Spot
Gets or sets the spot in the LocationElement that is this node's location point.
MaxLocation : Point
Gets or sets the maximum location for this node allowed by DraggingTool.
MinLocation : Point
Gets or sets the minimum location for this node allowed by DraggingTool.
NodesConnected : IEnumerable<Node>
Gets a collection of Nodes that have links connected to this node.
NodesInto : IEnumerable<Node>
Gets a collection of Nodes that have links coming into this node.
NodesOutOf : IEnumerable<Node>
Gets a collection of Nodes that have links going out of this node.
PartsModelContainingSubGraph : string
Gets or sets the identifier naming the containing group node in a PartsModel.
Port : FrameworkElement
Gets the primary FrameworkElement representing a port.
Ports : IEnumerable<FrameworkElement>
Gets a collection of FrameworkElements that have a non-null DependencyObject) value.
RotationAngle : double
Gets or sets the angle of the node's SelectionElement, in degrees.
RotationSpot : Spot
Gets or sets the Spot about which the node's SelectionElement will rotate.
Methoden
CollapseTree()
Make not visible each child node and the link connecting with the child node, and recursively collapse each child node.
ExpandTree()
Make visible each child node and the link to the child node, and perhaps recursively expand their nodes.
FindLinksConnectedWithPort(string) : IEnumerable<Link>
Returns a collection of Links that are connected to a particular port in either direction.
- portid
- When this argument is null, this just returns LinksConnected. Otherwise it returns those links where either the FromPortId or the ToPortId match the .
FindLinksIntoPort(string) : IEnumerable<Link>
Returns a collection of Links that come into a particular port.
- portid
- When this argument is null, this just returns LinksInto. Otherwise it returns those links where the FromPortId matches the .
FindLinksOutOfPort(string) : IEnumerable<Link>
Returns a collection of Links that go out of a particular port.
- portid
- When this argument is null, this just returns LinksOutOf. Otherwise it returns those links where the ToPortId matches the .
FindNodesConnectedWithPort(string) : IEnumerable<Node>
Returns a collection of Nodes that are connected to this node via links that are connected to a particular port in either direction.
- portid
- a port description that is passed to String)
FindNodesIntoPort(string) : IEnumerable<Node>
Returns a collection of Nodes that are connected to this node via links that come into a particular port.
- portid
- a port description that is passed to String)
FindNodesOutOfPort(string) : IEnumerable<Node>
Returns a collection of Nodes that are connected to this node via links that go out of a particular port.
- portid
- a port description that is passed to String)
FindPort(string, bool) : FrameworkElement
Find the FrameworkElement in this node whose Node.PortId attached property matches a given port parameter value.
- portid
- This treats null as an empty string. The method returns the element whose DependencyObject) value equals that string. If there is no such child element, it searches for an element whose DependencyObject) value is the empty string. Finally, when failing to find a port with either the given name or the empty string, this method returns the root visual element for the node.
- from
Rückgabe: a FrameworkElement, or null if no matching element is found
FindTreeParts(EffectiveCollectionInclusions) : IEnumerable<Part>
Return a collection of Parts that are all of the nodes and links reachable out of this node, including this Node itself.
- inclusions
- this should be SubTree
GetAvoidable(DependencyObject) : bool
Gets the value of the Avoidable attached dependency property.
- d
- the root VisualElement
GetAvoidableMargin(DependencyObject) : Thickness
Gets the value of the AvoidableMargin attached dependency property.
- d
- the root VisualElement
GetFromEndSegmentLength(DependencyObject) : double
Gets the value of the FromEndSegmentLengthProperty attached dependency property.
- d
GetFromSpot(DependencyObject) : Spot
Gets the value of the FromSpotProperty attached dependency property.
- d
GetIsTreeExpanded(DependencyObject) : bool
Gets the value of the IsTreeExpandedProperty attached dependency property that must only be on the root VisualElement.
- d
- the root VisualElement
GetLinkableDuplicates(DependencyObject) : bool
Gets the value of the LinkableDuplicatesProperty attached dependency property.
- d
GetLinkableFrom(DependencyObject) : bool?
Gets the value of the LinkableFromProperty attached dependency property.
- d
GetLinkableMaximum(DependencyObject) : int
Gets the value of the LinkableMaximumProperty attached dependency property.
- d
GetLinkableSelfNode(DependencyObject) : bool
Gets the value of the LinkableSelfNodeProperty attached dependency property.
- d
GetLinkableTo(DependencyObject) : bool?
Gets the value of the LinkableToProperty attached dependency property.
- d
GetLocation(DependencyObject) : Point
Gets the value of the Location attached dependency property.
- d
- the root VisualElement
GetLocationElementName(DependencyObject) : string
Gets the value of the LocationElementName attached dependency property.
- d
- the root VisualElement
GetLocationSpot(DependencyObject) : Spot
Gets the value of the LocationSpot attached dependency property.
- d
- the root VisualElement
GetMaxLocation(DependencyObject) : Point
Gets the value of the MaxLocation attached dependency property.
- d
- the root VisualElement
GetMinLocation(DependencyObject) : Point
Gets the value of the MinLocation attached dependency property.
- d
- the root VisualElement
GetPortId(DependencyObject) : string
Gets the value of the PortIdProperty attached dependency property.
- d
Rückgabe: If the element is acting as a "port", this returns the port's "name". By default this returns null, indicating that the element is not a port, unless it is the root VisualElement.
GetPortName(FrameworkElement) : string
Get the port parameter value for a particular FrameworkElement.
- port
- a FrameworkElement in this node's visual tree
Rückgabe: the value of DependencyObject), if it is a non-empty string; otherwise it returns null
GetRotationAngle(DependencyObject) : double
Gets the value of the RotationAngle attached dependency property.
- d
- the root VisualElement
GetRotationSpot(DependencyObject) : Spot
Gets the value of the RotationSpot attached dependency property.
- d
- the root VisualElement
GetToEndSegmentLength(DependencyObject) : double
Gets the value of the ToEndSegmentLengthProperty attached dependency property.
- d
GetToSpot(DependencyObject) : Spot
Gets the value of the ToSpotProperty attached dependency property.
- d
GetWasTreeExpanded(DependencyObject) : bool
Gets the value of the WasTreeExpandedProperty attached dependency property.
- d
- the root VisualElement
GetZOrder(DependencyObject) : double
Gets the value of the ZOrder attached dependency property.
- d
- the root VisualElement
Move(Point, bool)
Move a node to a new position, perhaps with animation.
- newpos
- a new Position in model coordinates; not a new Location
- animated
- whether the movement is animated by the diagram's LayoutManager
OnApplyTemplate()
Initialize IsExpandedTree with the possibly bound value of DependencyObject) on this node's root visual element, and initialize the node's Bounds.
OnIsExpandedTreeChanged()
This virtual method is called whenever the value of IsExpandedTree changes.
SetAvoidable(DependencyObject, bool)
Sets the value of the Avoidable attached dependency property.
- d
- the root VisualElement
- v
SetAvoidableMargin(DependencyObject, Thickness)
Sets the value of the AvoidableMargin attached dependency property.
- d
- the root VisualElement
- v
SetFromEndSegmentLength(DependencyObject, double)
Sets the value of the FromEndSegmentLengthProperty attached dependency property.
- d
- v
SetFromSpot(DependencyObject, Spot)
Sets the value of the FromSpotProperty attached dependency property.
- d
- v
SetIsTreeExpanded(DependencyObject, bool)
Sets the value of the IsTreeExpandedProperty attached dependency property.
- d
- the root VisualElement
- v
SetLinkableDuplicates(DependencyObject, bool)
Sets the value of the LinkableDuplicatesProperty attached dependency property.
- d
- v
SetLinkableFrom(DependencyObject, bool?)
Sets the value of the LinkableFromProperty attached dependency property.
- d
- v
SetLinkableMaximum(DependencyObject, int)
Sets the value of the LinkableMaximumProperty attached dependency property.
- d
- v
SetLinkableSelfNode(DependencyObject, bool)
Sets the value of the LinkableSelfNodeProperty attached dependency property.
- d
- v
SetLinkableTo(DependencyObject, bool?)
Sets the value of the LinkableToProperty attached dependency property.
- d
- v
SetLocation(DependencyObject, Point)
Sets the value of the Location attached dependency property.
- d
- the root VisualElement
- v
- neither coordinate may be Double.NaN
SetLocationElementName(DependencyObject, string)
Sets the value of the LocationElementName attached dependency property.
- d
- the root VisualElement
- v
SetLocationSpot(DependencyObject, Spot)
Sets the value of the LocationSpot attached dependency property.
- d
- the root VisualElement
- v
SetMaxLocation(DependencyObject, Point)
Sets the value of the MaxLocation attached dependency property.
- d
- the root VisualElement
- v
SetMinLocation(DependencyObject, Point)
Sets the value of the MinLocation attached dependency property.
- d
- the root VisualElement
- v
SetPortId(DependencyObject, string)
Sets the value of the PortIdProperty attached dependency property.
- d
- v
- null to indicate that the element is not a "port"; the empty string to indicate that the element is the default port for the Node; a non-empty string to uniquely identify the port within the Node
SetRotationAngle(DependencyObject, double)
Sets the value of the RotationAngle attached dependency property.
- d
- the root VisualElement
- v
SetRotationSpot(DependencyObject, Spot)
Sets the value of the RotationSpot attached dependency property.
- d
- the root VisualElement
- v
SetToEndSegmentLength(DependencyObject, double)
Sets the value of the ToEndSegmentLengthProperty attached dependency property.
- d
- v
SetToSpot(DependencyObject, Spot)
Sets the value of the ToSpotProperty attached dependency property.
- d
- v
SetWasTreeExpanded(DependencyObject, bool)
Sets the value of the WasTreeExpandedProperty attached dependency property.
- d
- the root VisualElement
- v
SetZOrder(DependencyObject, double)
Sets the value of the ZOrder attached dependency property.
- d
- the root VisualElement
- v
Felder
AvoidableMarginProperty : DependencyProperty
Identifies the AvoidableMargin attached dependency property that must only be on the root VisualElement.
AvoidableProperty : DependencyProperty
Identifies the Avoidable attached dependency property that must only be on the root VisualElement.
FromEndSegmentLengthProperty : DependencyProperty
Identifies the FromEndSegmentLength attached dependency property, for an element inside a Node.
FromSpotProperty : DependencyProperty
Identifies the FromSpot attached dependency property, for an element inside a Node acting as a port.
IdProperty : DependencyProperty
Identifies the Id dependency property.
IsExpandedTreeProperty : DependencyProperty
Identifies the IsExpandedTree dependency property.
IsLinkLabelProperty : DependencyProperty
Identifies the IsLinkLabel dependency property.
IsTreeExpandedProperty : DependencyProperty
Identifies the IsTreeExpanded attached dependency property that must only be on the root VisualElement.
LinkableDuplicatesProperty : DependencyProperty
Identifies the LinkableDuplicates attached dependency property, for an element inside a Node.
LinkableFromProperty : DependencyProperty
Identifies the LinkableFrom attached dependency property, for an element inside a Node.
LinkableMaximumProperty : DependencyProperty
Identifies the LinkableMaximum attached dependency property, for an element inside a Node.
LinkableSelfNodeProperty : DependencyProperty
Identifies the LinkableSelfNode attached dependency property, for an element inside a Node.
LinkableToProperty : DependencyProperty
Identifies the LinkableTo attached dependency property, for an element inside a Node.
LocationElementNameProperty : DependencyProperty
Identifies the LocationElementName attached dependency property that must only be on the root VisualElement.
LocationProperty : DependencyProperty
Identifies the Location attached dependency property that must only be on the root VisualElement.
LocationSpotProperty : DependencyProperty
Identifies the LocationSpot attached dependency property that must only be on the root VisualElement.
MaxLocationProperty : DependencyProperty
Identifies the MaxLocation attached dependency property that must only be on the root VisualElement.
MinLocationProperty : DependencyProperty
Identifies the MinLocation attached dependency property that must only be on the root VisualElement.
PartsModelContainingSubGraphProperty : DependencyProperty
Identifies the PartsModelContainingSubGraph dependency property.
PortIdProperty : DependencyProperty
Identifies the PortId attached dependency property, for an element inside a Node acting as a port.
RotationAngleProperty : DependencyProperty
Identifies the RotationAngle attached dependency property that must only be on the root VisualElement.
RotationSpotProperty : DependencyProperty
Identifies the RotationSpot attached dependency property that must only be on the root VisualElement.
ToEndSegmentLengthProperty : DependencyProperty
Identifies the ToEndSegmentLength attached dependency property, for an element inside a Node.
ToSpotProperty : DependencyProperty
Identifies the ToSpot attached dependency property, for an element inside a Node acting as a port.
WasTreeExpandedProperty : DependencyProperty
Identifies the WasTreeExpanded attached dependency property that must only be on the root VisualElement.
ZOrderProperty : DependencyProperty
Identifies the ZOrder attached dependency property that must only be on the root VisualElement.