如何在 VSTO Addin 中获取箭头线的大小?
我们正在开发一个 Powerpoint VSTO 插件,需要以编程方式计算 Powerpoint 中箭头的实际宽度和高度。 我们的代码可能如下所示:
freeFormShape.Line.EndArrowheadStyle = MsoArrowheadStyle.msoArrowheadTriangle;
freeFormShape.Line.EndArrowheadLength = MsoArrowheadLength.msoArrowheadShort;
freeFormShape.Line.EndArrowheadWidth = MsoArrowheadWidth.msoArrowheadNarrow;
有什么方法可以知道末端箭头三角形的大小(以磅为单位)?
谢谢
We are developing a Powerpoint VSTO Addin and need to programmatically calculate the real width and height of an Arrowhead in Powerpoint.
Our code may look like below:
freeFormShape.Line.EndArrowheadStyle = MsoArrowheadStyle.msoArrowheadTriangle;
freeFormShape.Line.EndArrowheadLength = MsoArrowheadLength.msoArrowheadShort;
freeFormShape.Line.EndArrowheadWidth = MsoArrowheadWidth.msoArrowheadNarrow;
Is there any way to know the size of End arrowhead triangle in points?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 LineFormat.Weight 属性返回或设置指定线条的粗细(以磅为单位)。
Try using the LineFormat.Weight property which returns or sets the thickness of the specified line, in points.