使用线几何图形的派生类的特殊情况
因此,使用具有属性(X1,Y1,X2,Y2)的线形状,使用相对于给定线元素的空间的坐标系(也就是说,它不是绝对的,或者至少是包含面板使用的坐标系) )。如果您只是从 Shape 派生并使用线几何体(在 overridegeometry 中)并为起点和终点定义两个 DP,它们将使用绝对坐标系(包含面板的坐标系)为什么会有所不同? (线(来自形状)不使用线几何形状吗?但无论它使用什么(即路径),为什么它会有所不同)
So using the line shape which has properties (X1, Y1, X2, Y2), uses the coordinate system relative to the space given to the Line element (that is, it is not absolute, or at least the one used by the containing panel). If you just derive from Shape and use a line geometry (in overridegeometry) and define two DPs for the start and end point, they will use the absolute coordinate system (the one of the containing panel) Why is this different? (Doesn't the Line (from Shape) use a line geometry?, but no matter what it uses (i.e. path) why should it make a difference)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其实,都是一样的。当您指定线几何的起点和终点时,它会创建一个足够大的几何图形,以便相对于几何图形,具有这些端点的线可以容纳在那里,如果您想将线坐标与包含的面板相关联,您可以必须考虑线的顶部和左侧属性。
Actually, it is the same thing. When you are specifying the start and end point for the linegemetry it creates a geometry big enough so that the line with those end points can fit in there, relative to the geometry, if you want to relate the Line coordinates to the containing panel, you would have to take into account the Line's top and left properties.