How to Import Visio Stencil?
29 Feb 2016 / 1 minute to read
You can import Visio stencils (.vss and .vsx) into symbol palettes. Essential Diagram uses the Visio stencil converter to convert the stencils as the symbol palette. You have to add Syncfusion.Diagram.Utility.Windows.dll as a reference in your application to use this converter.
The following code example illustrates how to convert Visio stencils into symbol palettes.
SymbolPalette paletteToReturn = null;
string strFileName = "Basic Flowchart Shapes.vss";
//Create an instance of VisioStencilConverter
VisioStencilConverter converter = new VisioStencilConverter(strFileName);
converter.ShowProgressDialog = true;
//Convert the stencil as SymbolPalette
paletteToReturn = converter.Convert();
paletteGroupBar1.AddPalette(paletteToReturn);
Dim paletteToReturn As SymbolPalette = Nothing
Dim strFileName As String = "Basic Flowchart Shapes.vss"
'Create an instance of VisioStencilConverter
Dim converter As VisioStencilConverter = New VisioStencilConverter(strFileName)
converter.ShowProgressDialog = True
'Convert the stencil as SymbolPalette
paletteToReturn = converter.Convert()
paletteGroupBar1.AddPalette(paletteToReturn)
NOTE
You must have Visio installed in your machine to import the stencils.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page