DiagramLayout

StockSharp.Xaml.Diagram.GXDiagram.Layout

DiagramLayout is the base class for all of the predefined specific layout implementations.

Erbt von: FrameworkElement

Implementiert: IDiagramLayout

Konstruktoren

DiagramLayout()

Create a DiagramLayout that is invalidated only under the Standard conditions.

DiagramLayout(DiagramLayout)

Help making a copy of a DiagramLayout.

layout

Eigenschaften

ArrangementOrigin : Point

Gets or sets the point of the top-left node.

Conditions : LayoutChange

Gets or sets the LayoutChange conditions for which Part) will set ValidLayout to false.

Diagram : Diagram

Gets or sets a reference to the owner Diagram.

Group : Group

Gets or sets a reference to the owner Group, if any.

Id : string

Gets or sets an identifier for a particular layout.

ValidLayout : bool

Gets or sets whether this layout is valid; if not, the LayoutManager will call Link}) sometime in order to make sure the layout is valid.

Methoden

CanLayoutPart(Part) : bool

Decide whether a given Part should participate in this layout.

part

Rückgabe: Typically this should return false if the part is not visible, if the part is in a temporary Layer, or if the part's LayoutId is "None". This should return true if the part's LayoutId is "All" or if it matches the Id of this layout.

DoLayout(IEnumerable<Node>, IEnumerable<Link>)

Position all nodes that do not have an assigned Location in the manner of a simple rectangular array.

nodes
links
Invalidate(LayoutChange, Part)

Declare that this layout might no longer be valid, depending on the change and the Conditions.

reason
A LayoutChange hint describing what change may have made the layout invalid. If the value is All, ValidLayout will be set to false unconditionally.
part
the Part that has changed
InvalidateLayout()

Set the ValidLayout property to false, and ask the diagram's LayoutManager to perform layouts in the near future.

Felder

ArrangementOriginProperty : DependencyProperty

Identifies the ArrangementOrigin dependency property.

IdProperty : DependencyProperty

Identifies the Id dependency property.