Table of Contents

Class Port

Namespace
H.Controls.Diagram.Parts
Assembly
H.Controls.Diagram.dll
public class Port : FlowablePart, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Inheritance
Port
Implements
Inherited Members
Extension Methods

Fields

DockProperty

public static readonly DependencyProperty DockProperty

Field Value

DependencyProperty

Properties

Data

public IPortData Data { get; }

Property Value

IPortData

DefaultKey

public static ComponentResourceKey DefaultKey { get; }

Property Value

ComponentResourceKey

Dock

public Dock Dock { get; set; }

Property Value

Dock

Id

public string Id { get; }

Property Value

string

ParentNode

public Node ParentNode { get; set; }

Property Value

Node

PortType

public PortType PortType { get; set; }

Property Value

PortType

Methods

ArrangeOverride(Size)

Positions the single child element and determines the content of a ContentPresenter object.

protected override Size ArrangeOverride(Size arrangeSize)

Parameters

arrangeSize Size

The size that this ContentPresenter object should use to arrange its child element.

Returns

Size

The actual size needed by the element.

ChangedPoint(Point, double)

public Point ChangedPoint(Point point, double span = 50)

Parameters

point Point
span double

Returns

Point

Clear()

清理逻辑关系

public override void Clear()

Create(Node)

public static Port Create(Node parent)

Parameters

parent Node

Returns

Port

Delete()

删除图层上的元素

public override void Delete()
public IEnumerable<Link> GetConnectLinks()

Returns

IEnumerable<Link>

GetLinkInto()

public IEnumerable<Link> GetLinkInto()

Returns

IEnumerable<Link>

GetLinksOutOf()

public IEnumerable<Link> GetLinksOutOf()

Returns

IEnumerable<Link>

GetNext()

public override Part GetNext()

Returns

Part

GetPrevious()

public override Part GetPrevious()

Returns

Part

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 DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.