LinkPanel

StockSharp.Xaml.Diagram.GXDiagram

LinkPanel是用于定位和确定链接沿线要素的小组。

继承自: Panel

构造函数

LinkPanel
public LinkPanel()
linkPanel = LinkPanel()

Construct an empty LinkPanel.

属性

Implementation
public LinkPanelImplementation Implementation { get; set; }
value = linkPanel.Implementation
linkPanel.Implementation = value

获得或设定链接执行的性质.

Path
public Shape Path { get; }
value = linkPanel.Path

获得代表链接路由的可视路径的LinkShape.

方法

ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = linkPanel.ArrangeOverride(finalSize)

安排此面板和任何标签节点中的儿童元素 。

finalSize
ComputeAngle
protected virtual double ComputeAngle(UIElement elt, LabelOrientation orient, double angle)
result = linkPanel.ComputeAngle(elt, orient, angle)

动态计算某一元素沿路段的预期角度.

elt
正在旋转的 UIELEment 中
orient
已声明的% LabelOrientation QQ
angle
元素附加的路由段的角

返回值: 元素的预定角度

ComputeOffset
protected virtual Point ComputeOffset(UIElement elt, int index, double segangle, Size sz, double labelangle)
result = linkPanel.ComputeOffset(elt, index, segangle, sz, labelangle)

计算用于确定标签位置的相抵。

elt
标签位置, 或为 LinkPanel 的子元素, 或标签节点的 VisualElement 的子元素
index
链接的段,如果标签位于 MidPoint,则表示负值
segangle
或 MidAngle 角度
sz
标签大小
labelangle
标签旋转的角度,从调用 Double )

返回值: 折抵,根据段的角旋转;这将被加到链路中点或分点上

GetAlignment
public static Spot GetAlignment(DependencyObject d)
result = LinkPanel.GetAlignment(d)

获得元素的对齐点,该点控制着元素沿某一路段所处行走的距离所处位置.

d
a child element of a LinkPanel

返回值: 默认值为 Center 。

GetFraction
public static double GetFraction(DependencyObject d)
result = LinkPanel.GetFraction(d)

沿着元素应定位的线段获得分数距离。

d
a child element of a LinkPanel

返回值: 默认值为0。对于负指数,当点从"到"结束向"从"结束"移动时,分数从"零"增加到"从"到"结束".

GetFromArrow
public static Arrowhead GetFromArrow(DependencyObject d)
result = LinkPanel.GetFromArrow(d)

让箭头走在FromNode的一端

d
a child element of a LinkPanel

返回值: 默认值为无,表示元素上没有箭头.

GetFromArrowScale
public static double GetFromArrowScale(DependencyObject d)
result = LinkPanel.GetFromArrowScale(d)

获得元素上箭头的大小,在 FromNode 端,作为基准大小的倍数。

d
a child element of a LinkPanel

返回值: 默认值为1.0,表示在Generic.xaml所定义的基准大小.

GetIndex
public static int GetIndex(DependencyObject d)
result = LinkPanel.GetIndex(d)

获得元素的分段索引,沿链接的行进线行走.

d
a child element of a LinkPanel

返回值: 0 表示离路由“ 从” 端最近的段。 正值表示路线的再走一段。 负值表示路线从“ 从” 端开始的段; - 1 是最后一段, - 2 是下一个最后一段, 等。 如果索引没有为某个元素指定, LinkPanel 将安排在路由的 MidPoint 。

GetIsLinkShape
public static bool GetIsLinkShape(DependencyObject d)
result = LinkPanel.GetIsLinkShape(d)

获取LinkShape是否是链接的主中风.

GetOffset
public static Point GetOffset(DependencyObject d)
result = LinkPanel.GetOffset(d)

获得连接段的分分点的距离,该元素应位于该分点上。

d
a child element of a LinkPanel

返回值: 默认值为 (0, 0) 。 相抵距离位于模型坐标中。 相抵偏移被旋转到链接段的角度。 正面 X 值导致元素沿着链接段的位置更远; 负值更接近 。 正面 Y 值导致元素从链接段位置移到路径的右侧; 负值向左侧 。

GetOrientation
public static LabelOrientation GetOrientation(DependencyObject d)
result = LinkPanel.GetOrientation(d)

获得元素的预定旋转政策.

d
a child element of a LinkPanel

返回值: 默认值为无,表示元素不被旋转.

GetToArrow
public static Arrowhead GetToArrow(DependencyObject d)
result = LinkPanel.GetToArrow(d)

让箭头走在ToNode的一端

d
a child element of a LinkPanel

返回值: 默认值为无,表示元素上没有箭头.

GetToArrowScale
public static double GetToArrowScale(DependencyObject d)
result = LinkPanel.GetToArrowScale(d)

获得元素上箭头的大小,在 ToNode 端,作为基准大小的倍数。

d
a child element of a LinkPanel

返回值: 默认值为1.0,表示xaml中定义的基数.

IsFilled
public static bool IsFilled(Arrowhead arrow)
result = LinkPanel.IsFilled(arrow)

返回是否要填入箭头 。

arrow
箭头,应该还是不应该填满。

返回值: 如果箭头被填满的话,那就是真的了。

MeasureOverride
protected override Size MeasureOverride(Size availableSize)
result = linkPanel.MeasureOverride(availableSize)

确定位置和旋转子元素的结合范围大小。

availableSize
SetAlignment
public static void SetAlignment(DependencyObject d, Spot v)
LinkPanel.SetAlignment(d, v)

设置元素的对齐点,该点控制着元素沿某一路段所处行走的距离所处位置.

d
a child element of a LinkPanel
v
SetFraction
public static void SetFraction(DependencyObject d, double v)
LinkPanel.SetFraction(d, v)

沿元素应定位的线段设置分数距离。

d
a child element of a LinkPanel
v
分数应该是0到1, 包含在内。 对于非负指数, 分数从0到1, 随点从“ 从” 端移到“ 从” 端移到“ 从” 端移到 ” 端。 对于负指数, 分数从0到1, 随点从“ 从” 端移到“ 从” 端移到 ” 端。
SetFromArrow
public static void SetFromArrow(DependencyObject d, Arrowhead v)
LinkPanel.SetFromArrow(d, v)

将箭头设置在路径上, 在 FromNode 端 。

d
a child element of a LinkPanel
v
正在设定的箭头圆柱的常数 。
SetFromArrowScale
public static void SetFromArrowScale(DependencyObject d, double v)
LinkPanel.SetFromArrowScale(d, v)

设定 FromNode 端元素上箭头的大小,作为基准大小的倍数。

d
a child element of a LinkPanel
v
可接受值是0到无穷之间的实际数字。
SetIndex
public static void SetIndex(DependencyObject d, int v)
LinkPanel.SetIndex(d, v)

设置元素的分段索引,沿链接的行进线进行。

d
a child element of a LinkPanel
v
0 表示离路由“ 从” 端最近的段。 正值表示路线的再走一段。 负值表示路线从“ 从” 端开始的段; - 1 是最后一段, - 2 是下一个最后一段, 等。 如果索引没有为某个元素指定, LinkPanel 将安排在路由的 MidPoint 。
SetIsLinkShape
public static void SetIsLinkShape(DependencyObject d, bool v)
LinkPanel.SetIsLinkShape(d, v)

设定链接的主中键为 LinkShape 。

SetOffset
public static void SetOffset(DependencyObject d, Point v)
LinkPanel.SetOffset(d, v)

设定元素应位于的链接段的分分点的距离。

d
a child element of a LinkPanel
v
相抵距离位于模型坐标中。 相抵偏移被旋转到链接段的角度。 正 X值导致元素沿着链接段更远的位置; 负值更接近。 正 Y值导致元素从链接段被定位到路径的右侧; 负值向左侧走 。
SetOrientation
public static void SetOrientation(DependencyObject d, LabelOrientation v)
LinkPanel.SetOrientation(d, v)

设置元素的预定旋转政策 。

d
a child element of a LinkPanel
v
SetToArrow
public static void SetToArrow(DependencyObject d, Arrowhead v)
LinkPanel.SetToArrow(d, v)

将箭头设置在路径上, 在 ToNode 端 。

d
a child element of a LinkPanel
v
正在设定的箭头圆柱的常数 。
SetToArrowScale
public static void SetToArrowScale(DependencyObject d, double v)
LinkPanel.SetToArrowScale(d, v)

设定一个元素上箭头的大小, 位于 ToNode 端, 作为其基大小的倍数。

d
a child element of a LinkPanel
v
可接受值是0到无穷之间的实际数字。

字段

AlignmentProperty
public static readonly DependencyProperty AlignmentProperty
value = LinkPanel.AlignmentProperty

确定附属的附属财产。

FractionProperty
public static readonly DependencyProperty FractionProperty
value = LinkPanel.FractionProperty

确定附属的分数属性。

FromArrowProperty
public static readonly DependencyProperty FromArrowProperty
value = LinkPanel.FromArrowProperty

识别所附带的受抚养财产。

FromArrowScaleProperty
public static readonly DependencyProperty FromArrowScaleProperty
value = LinkPanel.FromArrowScaleProperty

识别所附带的受抚养财产。

ImplementationProperty
public static readonly DependencyProperty ImplementationProperty
value = LinkPanel.ImplementationProperty

确定执行依赖财产。

IndexProperty
public static readonly DependencyProperty IndexProperty
value = LinkPanel.IndexProperty

确定附着的附属财产。

IsLinkShapeProperty
public static readonly DependencyProperty IsLinkShapeProperty
value = LinkPanel.IsLinkShapeProperty

确定IsLinkShape的受抚养财产。

OffsetProperty
public static readonly DependencyProperty OffsetProperty
value = LinkPanel.OffsetProperty

确定附带的离散依赖财产。

OrientationProperty
public static readonly DependencyProperty OrientationProperty
value = LinkPanel.OrientationProperty

确定附属的附属财产方向。

ToArrowProperty
public static readonly DependencyProperty ToArrowProperty
value = LinkPanel.ToArrowProperty

识别所附带的受抚养财产。

ToArrowScaleProperty
public static readonly DependencyProperty ToArrowScaleProperty
value = LinkPanel.ToArrowScaleProperty

识别所附带的受抚养财产。