Class Node
节点
public class Node : Part, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, INode
- Inheritance
-
Node
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
IsDraggingProperty
正在拖动
public static readonly DependencyProperty IsDraggingProperty
Field Value
LocationProperty
public static readonly DependencyProperty LocationProperty
Field Value
PositionProperty
说明
public static readonly DependencyProperty PositionProperty
Field Value
Properties
ConnectLinks
关系
public List<Link> ConnectLinks { get; set; }
Property Value
DefaultKey
public static ComponentResourceKey DefaultKey { get; }
Property Value
Id
public string Id { get; }
Property Value
LinksInto
扇入
public List<Link> LinksInto { get; set; }
Property Value
LinksOutOf
扇出
public List<Link> LinksOutOf { get; set; }
Property Value
Location
public Point Location { get; set; }
Property Value
VisualChildrenCount
Gets the number of visual child elements within this element.
protected override int VisualChildrenCount { get; }
Property Value
- int
The number of visual child elements for this element.
Methods
AddPort(Port)
public void AddPort(Port port)
Parameters
port
Port
Aligment()
public void Aligment()
ArrangeOverride(Size)
Positions the single child element and determines the content of a ContentPresenter object.
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
Returns
- Size
The actual size needed by the element.
Clear()
清理逻辑关系
public override void Clear()
Delete()
删除图层上的元素
public override void Delete()
GetAllLinks()
public IEnumerable<Link> GetAllLinks()
Returns
GetAllParts(Func<Part, bool>)
public IEnumerable<Part> GetAllParts(Func<Part, bool> filter = null)
Parameters
Returns
GetFromNodes(Func<Node, bool>)
public List<Node> GetFromNodes(Func<Node, bool> filter = null)
Parameters
Returns
GetIsDragging(DependencyObject)
public static bool GetIsDragging(DependencyObject d)
Parameters
Returns
GetNext()
public override Part GetNext()
Returns
GetParts(Func<Part, bool>)
public IEnumerable<Part> GetParts(Func<Part, bool> filter = null)
Parameters
Returns
GetPorts(Func<Port, bool>)
public List<Port> GetPorts(Func<Port, bool> predicate = null)
Parameters
Returns
GetPosition(DependencyObject)
public static Point GetPosition(DependencyObject d)
Parameters
Returns
GetPrevious()
public override Part GetPrevious()
Returns
GetToNodes(Func<Node, bool>)
public List<Node> GetToNodes(Func<Node, bool> filter = null)
Parameters
Returns
GetVisiblity()
protected virtual bool GetVisiblity()
Returns
GetVisualChild(int)
Overrides GetVisualChild(int), and returns a child at the specified index from a collection of child elements.
protected override Visual GetVisualChild(int index)
Parameters
index
intThe zero-based index of the requested child element in the collection.
Returns
- Visual
The requested child element. This should not return null; if the provided index is out of range, an exception is thrown.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
Parameters
drawingContext
DrawingContextThe drawing instructions for a specific element. This context is provided to the layout system.
RemovePort(Port)
public void RemovePort(Port port)
Parameters
port
Port
SetIsDragging(DependencyObject, bool)
public static void SetIsDragging(DependencyObject obj, bool value)
Parameters
obj
DependencyObjectvalue
bool
SetPosition(DependencyObject, Point)
public static void SetPosition(DependencyObject obj, Point value)
Parameters
obj
DependencyObjectvalue
Point
StartLink(Action<Part>)
public Task<bool?> StartLink(Action<Part> builder = null)
Parameters
Returns
StartNode(Action<Node>)
public Task<bool?> StartNode(Action<Node> builder = null)
Parameters
Returns
StartPort(Action<Part>)
public Task<bool?> StartPort(Action<Part> builder = null)
Parameters
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.