4

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?

4

1 に答える 1

2

これを行うには、Master のHidden Propertyを設定します。これを UI に設定することはできませんが、次のようなステートメントを使用して VBA イミディエイト ウィンドウで簡単に設定できます。

Visio.ActiveDocument.Masters("MyMaster").Hidden = True
于 2010-12-04T18:42:13.923 に答える