开发者

Hiding a Master Shape in Stencil in Visio

开发者 https://www.devze.com 2023-01-28 17:18 出处:网络
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 programmatical开发者_如何学运维

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 programmatical开发者_如何学运维ly?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消