Layer

StockSharp.Xaml.Diagram.GXDiagram

A Layer is a collection of Nodes or Links that are to be displayed in front of or behind the parts in other layers.

继承自: UIElement

属性

AllowCopy : bool

Gets or sets whether the user may copy the parts that are in this layer.

AllowDelete : bool

Gets or sets whether the user may delete the parts that are in this layer.

AllowEdit : bool

Gets or sets whether the user may edit in-place the text of the parts that are in this layer.

AllowGroup : bool

Gets or sets whether the user may group the parts that are in this layer.

AllowMove : bool

Gets or sets whether the user may move the parts that are in this layer.

AllowPrint : bool

Gets or sets whether the user may print the parts that are in this layer.

AllowReshape : bool

Gets or sets whether the user may reshape the parts that are in this layer.

AllowResize : bool

Gets or sets whether the user may resize the parts that are in this layer.

AllowRotate : bool

Gets or sets whether the user may rotate the parts that are in this layer.

AllowSelect : bool

Gets or sets whether the user may select the parts that are in this layer.

AllowUngroup : bool

Gets or sets whether the user may ungroup the groups that are in this layer.

Diagram : Diagram

Get the Diagram that this layer is in.

Id : string

Gets or sets a string naming the layer.

IsTemporary : bool

Gets or sets whether the layer holds "temporary" objects, such as selection or tool adornments or other parts temporarily displayed by tools.

Panel : DiagramPanel

Get the DiagramPanel that this layer is in.

方法

FindElementAt``1(Point, Func<Visual, T>, Predicate<T>)

Search the parts in this layer that are at a given point that meet a given predicate, and return the first element that matches.

p
a Point in model coordinates
navig
This is a function that is given an element at the given point and returns an element of type to be considered by the predicate . Typically the function will find the ancestor Part or Node.
pred
This is a predicate that is given an element of type ; if the predicate returns true, this method returns that element.

返回值: an element of type

FindElementsAt``1(Point, Func<Visual, T>, Predicate<T>)

Search the parts in this layer that are at a given point that meet a given predicate, and return a collection of elements that match.

p
a Point in model coordinates
navig
This is a function that is given an element at the given point and returns an element of type to be considered by the predicate . Typically the function will find the ancestor Part or Node.
pred
This is a predicate that is given an element of type ; if the predicate returns true, this method includes that element in its results.

返回值: a collection of elements of type

OnVisualParentChanged(DependencyObject)

Every Layer's parent must be a DiagramPanel, if it has any parent.

oldParent

字段

AllowCopyProperty : DependencyProperty

Identifies the AllowCopy dependency property.

AllowDeleteProperty : DependencyProperty

Identifies the AllowDelete dependency property.

AllowEditProperty : DependencyProperty

Identifies the AllowEdit dependency property.

AllowGroupProperty : DependencyProperty

Identifies the AllowGroup dependency property.

AllowLinkProperty : DependencyProperty

Identifies the AllowLink dependency property.

AllowMoveProperty : DependencyProperty

Identifies the AllowMove dependency property.

AllowPrintProperty : DependencyProperty

Identifies the AllowPrint dependency property.

AllowRelinkProperty : DependencyProperty

Identifies the AllowRelink dependency property.

AllowReshapeProperty : DependencyProperty

Identifies the AllowReshape dependency property.

AllowResizeProperty : DependencyProperty

Identifies the AllowResize dependency property.

AllowRotateProperty : DependencyProperty

Identifies the AllowRotate dependency property.

AllowSelectProperty : DependencyProperty

Identifies the AllowSelect dependency property.

AllowUngroupProperty : DependencyProperty

Identifies the AllowUngroup dependency property.

IdProperty : DependencyProperty

Identifies the Id dependency property.

IsTemporaryProperty : DependencyProperty

Identifies the IsTemporary dependency property.