Class VisioStencilConverter
The VisioStencilConverter is a utility class that converts Visio stencil files (.vss files) into Essential Diagram symbol palettes (.edp files). Each shape in the stencil file will have a Group equivalent in the SymbolPalette. The symbol palette may directly be consumed by diagramming applications, and symbols created from the symbol models.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Utility.Windows.dll
Syntax
public class VisioStencilConverter : IDisposable
Constructors
VisioStencilConverter(String)
Initializes a new instance of the VisioStencilConverter class.
Declaration
public VisioStencilConverter(string strFileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFileName | The Visio stencil file. |
VisioStencilConverter(String, String)
Initializes a new instance of the VisioStencilConverter class.
Declaration
public VisioStencilConverter(string strFileName, string strTempDir)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFileName | The Visio stencil file. |
System.String | strTempDir | Directory used to store Converer temorary files. |
VisioStencilConverter(String, Form)
Initializes a new instance of the VisioStencilConverter class.
Declaration
public VisioStencilConverter(string strFileName, Form parent)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFileName | The Visio stencil file. |
System.Windows.Forms.Form | parent | The form hosting the converter. |
Properties
IgnoreStyles
Gets or sets a value indicating whether the fill styles specified for the Visio shapes will be applied to the diagram symbols.
Declaration
public bool IgnoreStyles { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
When the IgnoreStyles property is set to its default value of TRUE the Visio shape fill values will not be extended to the diagram symbolmodel, and the symbols will retain the default fill values.
ShowProgressDialog
Gets or sets a value indicating whether a progress dialog should be displayed during the conversion.
Declaration
public bool ShowProgressDialog { get; set; }
Property Value
Type |
---|
System.Boolean |
TemporaryDirectory
Gets or sets a value indcating whether temporary directory used by Visio converter to store temp files.
Declaration
public string TemporaryDirectory { get; set; }
Property Value
Type |
---|
System.String |
Methods
Convert()
Converts the Visio stencil into an Essential Diagram symbol palette.
Declaration
public SymbolPalette Convert()
Returns
Type | Description |
---|---|
SymbolPalette | The SymbolPalette instance generated from the stencil. |
Dispose()
Disposes the VisioStencilConverter.
Declaration
public void Dispose()