在 Visio 的模具中隐藏主形状

发布于 2024-10-05 13:25:00 字数 58 浏览 1 评论 0原文

是否可以在模板中隐藏主形状,以便用户无法将其拖放到图表上,同时仍然允许我以编程方式在图表中使用该对象?

Is it possible to hide a master shape in your stencil so that a user cannot drag and drop it on their diagram, while still allowing me to use that object in the diagram programmatically?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灵芸 2024-10-12 13:25:01

您可以通过设置主服务器的隐藏属性<来完成此操作/a>.这无法在 UI 中设置,但可以使用如下语句在 VBA 立即窗口中轻松设置:

Visio.ActiveDocument.Masters("MyMaster").Hidden = True

You can do this by setting the Master's Hidden Property. This can't be set the the UI but it is easy to set in the VBA Immediate window with a statement like this:

Visio.ActiveDocument.Masters("MyMaster").Hidden = True
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文