LinkPanel
LinkPanel是用于定位和确定链接沿线要素的小组。
继承自: Panel
构造函数
属性
public LinkPanelImplementation Implementation { get; set; }
value = linkPanel.Implementation
linkPanel.Implementation = value
获得或设定链接执行的性质.
方法
protected override Size ArrangeOverride(Size finalSize)
result = linkPanel.ArrangeOverride(finalSize)
安排此面板和任何标签节点中的儿童元素 。
- finalSize
protected virtual double ComputeAngle(UIElement elt, LabelOrientation orient, double angle)
result = linkPanel.ComputeAngle(elt, orient, angle)
动态计算某一元素沿路段的预期角度.
- elt
- 正在旋转的 UIELEment 中
- orient
- 已声明的% LabelOrientation QQ
- angle
- 元素附加的路由段的角
返回值: 元素的预定角度
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 )
返回值: 折抵,根据段的角旋转;这将被加到链路中点或分点上
public static Spot GetAlignment(DependencyObject d)
result = LinkPanel.GetAlignment(d)
获得元素的对齐点,该点控制着元素沿某一路段所处行走的距离所处位置.
- d
- a child element of a LinkPanel
返回值: 默认值为 Center 。
public static double GetFraction(DependencyObject d)
result = LinkPanel.GetFraction(d)
沿着元素应定位的线段获得分数距离。
- d
- a child element of a LinkPanel
返回值: 默认值为0。对于负指数,当点从"到"结束向"从"结束"移动时,分数从"零"增加到"从"到"结束".
public static Arrowhead GetFromArrow(DependencyObject d)
result = LinkPanel.GetFromArrow(d)
让箭头走在FromNode的一端
- d
- a child element of a LinkPanel
返回值: 默认值为无,表示元素上没有箭头.
public static double GetFromArrowScale(DependencyObject d)
result = LinkPanel.GetFromArrowScale(d)
获得元素上箭头的大小,在 FromNode 端,作为基准大小的倍数。
- d
- a child element of a LinkPanel
返回值: 默认值为1.0,表示在Generic.xaml所定义的基准大小.
public static int GetIndex(DependencyObject d)
result = LinkPanel.GetIndex(d)
获得元素的分段索引,沿链接的行进线行走.
- d
- a child element of a LinkPanel
返回值: 0 表示离路由“ 从” 端最近的段。 正值表示路线的再走一段。 负值表示路线从“ 从” 端开始的段; - 1 是最后一段, - 2 是下一个最后一段, 等。 如果索引没有为某个元素指定, LinkPanel 将安排在路由的 MidPoint 。
public static bool GetIsLinkShape(DependencyObject d)
result = LinkPanel.GetIsLinkShape(d)
获取LinkShape是否是链接的主中风.
public static Point GetOffset(DependencyObject d)
result = LinkPanel.GetOffset(d)
获得连接段的分分点的距离,该元素应位于该分点上。
- d
- a child element of a LinkPanel
返回值: 默认值为 (0, 0) 。 相抵距离位于模型坐标中。 相抵偏移被旋转到链接段的角度。 正面 X 值导致元素沿着链接段的位置更远; 负值更接近 。 正面 Y 值导致元素从链接段位置移到路径的右侧; 负值向左侧 。
public static LabelOrientation GetOrientation(DependencyObject d)
result = LinkPanel.GetOrientation(d)
获得元素的预定旋转政策.
- d
- a child element of a LinkPanel
返回值: 默认值为无,表示元素不被旋转.
public static Arrowhead GetToArrow(DependencyObject d)
result = LinkPanel.GetToArrow(d)
让箭头走在ToNode的一端
- d
- a child element of a LinkPanel
返回值: 默认值为无,表示元素上没有箭头.
public static double GetToArrowScale(DependencyObject d)
result = LinkPanel.GetToArrowScale(d)
获得元素上箭头的大小,在 ToNode 端,作为基准大小的倍数。
- d
- a child element of a LinkPanel
返回值: 默认值为1.0,表示xaml中定义的基数.
public static bool IsFilled(Arrowhead arrow)
result = LinkPanel.IsFilled(arrow)
返回是否要填入箭头 。
- arrow
- 箭头,应该还是不应该填满。
返回值: 如果箭头被填满的话,那就是真的了。
protected override Size MeasureOverride(Size availableSize)
result = linkPanel.MeasureOverride(availableSize)
确定位置和旋转子元素的结合范围大小。
- availableSize
public static void SetAlignment(DependencyObject d, Spot v)
LinkPanel.SetAlignment(d, v)
设置元素的对齐点,该点控制着元素沿某一路段所处行走的距离所处位置.
- d
- a child element of a LinkPanel
- v
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, 随点从“ 从” 端移到“ 从” 端移到 ” 端。
public static void SetFromArrow(DependencyObject d, Arrowhead v)
LinkPanel.SetFromArrow(d, v)
将箭头设置在路径上, 在 FromNode 端 。
- d
- a child element of a LinkPanel
- v
- 正在设定的箭头圆柱的常数 。
public static void SetFromArrowScale(DependencyObject d, double v)
LinkPanel.SetFromArrowScale(d, v)
设定 FromNode 端元素上箭头的大小,作为基准大小的倍数。
- d
- a child element of a LinkPanel
- v
- 可接受值是0到无穷之间的实际数字。
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 。
public static void SetIsLinkShape(DependencyObject d, bool v)
LinkPanel.SetIsLinkShape(d, v)
设定链接的主中键为 LinkShape 。
public static void SetOffset(DependencyObject d, Point v)
LinkPanel.SetOffset(d, v)
设定元素应位于的链接段的分分点的距离。
- d
- a child element of a LinkPanel
- v
- 相抵距离位于模型坐标中。 相抵偏移被旋转到链接段的角度。 正 X值导致元素沿着链接段更远的位置; 负值更接近。 正 Y值导致元素从链接段被定位到路径的右侧; 负值向左侧走 。
public static void SetOrientation(DependencyObject d, LabelOrientation v)
LinkPanel.SetOrientation(d, v)
设置元素的预定旋转政策 。
- d
- a child element of a LinkPanel
- v
public static void SetToArrow(DependencyObject d, Arrowhead v)
LinkPanel.SetToArrow(d, v)
将箭头设置在路径上, 在 ToNode 端 。
- d
- a child element of a LinkPanel
- v
- 正在设定的箭头圆柱的常数 。
public static void SetToArrowScale(DependencyObject d, double v)
LinkPanel.SetToArrowScale(d, v)
设定一个元素上箭头的大小, 位于 ToNode 端, 作为其基大小的倍数。
- d
- a child element of a LinkPanel
- v
- 可接受值是0到无穷之间的实际数字。
字段
public static readonly DependencyProperty AlignmentProperty
value = LinkPanel.AlignmentProperty
确定附属的附属财产。
public static readonly DependencyProperty FractionProperty
value = LinkPanel.FractionProperty
确定附属的分数属性。
public static readonly DependencyProperty FromArrowProperty
value = LinkPanel.FromArrowProperty
识别所附带的受抚养财产。
public static readonly DependencyProperty FromArrowScaleProperty
value = LinkPanel.FromArrowScaleProperty
识别所附带的受抚养财产。
public static readonly DependencyProperty ImplementationProperty
value = LinkPanel.ImplementationProperty
确定执行依赖财产。
public static readonly DependencyProperty IndexProperty
value = LinkPanel.IndexProperty
确定附着的附属财产。
public static readonly DependencyProperty IsLinkShapeProperty
value = LinkPanel.IsLinkShapeProperty
确定IsLinkShape的受抚养财产。
public static readonly DependencyProperty OffsetProperty
value = LinkPanel.OffsetProperty
确定附带的离散依赖财产。
public static readonly DependencyProperty OrientationProperty
value = LinkPanel.OrientationProperty
确定附属的附属财产方向。
public static readonly DependencyProperty ToArrowProperty
value = LinkPanel.ToArrowProperty
识别所附带的受抚养财产。
public static readonly DependencyProperty ToArrowScaleProperty
value = LinkPanel.ToArrowScaleProperty
识别所附带的受抚养财产。