Hiding a stencil

D

Daniel Kloberg

Hi!

I am currently developing a Visio add-in using c#. The add-in is dependent
of two stencils named TUI shapes.vss and System.vss. The Visio users uses
TUI Shapes.vss to drag and drop shapes to the drawing. The masters in
System.vss are only used internally by the add-in, so ideally, the users
should not be able to see it. Is there any way for me to hide System.vss
from the user, but still be able to access its masters from my code?

Regards,
Daniel Kloberg
 
P

Paul Herber

Hi!

I am currently developing a Visio add-in using c#. The add-in is dependent
of two stencils named TUI shapes.vss and System.vss. The Visio users uses
TUI Shapes.vss to drag and drop shapes to the drawing. The masters in
System.vss are only used internally by the add-in, so ideally, the users
should not be able to see it. Is there any way for me to hide System.vss
from the user, but still be able to access its masters from my code?

When opening the stencil, use the attribute visOpenHidden (40H).
 
L

LarryF

Here's how I do it in C#:

using Visio = Microsoft.Office.Interop.Visio;
....
app.Documents.OpenEx(fileName, (short)(Visio.VisOpenSaveArgs.visOpenRO
| Visio.VisOpenSaveArgs.visOpenHidden));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top