Method Convert
- Namespace
- SharpVectors.Converters
- Assembly
- SharpVectors.Converters.Wpf.dll
Convert(string)
This performs the conversion of the specified SVG file, and saves the output to an XAML file with the same file name.
public bool Convert(string svgFileName)
Parameters
svgFileNamestringThe full path of the SVG source file.
Returns
Exceptions
- ArgumentNullException
If the
svgFileNameis null.- ArgumentException
If the
svgFileNameis empty.-or-
If thesvgFileNamedoes not exists.
Convert(string, string)
This performs the conversion of the specified SVG file, and saves the output to the specified XAML file.
public bool Convert(string svgFileName, string xamlFileName)
Parameters
svgFileNamestringThe full path of the SVG source file.
xamlFileNamestringThe output XAML file. This is optional. If not specified, an XAML file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
svgFileNameis null.- ArgumentException
If the
svgFileNameis empty.-or-
If thesvgFileNamedoes not exists.
Convert(Stream, string)
This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.
public bool Convert(Stream svgStream, string xamlFileName)
Parameters
svgStreamStreamA stream providing access to the SVG source data.
xamlFileNamestringThe output XAML file. This is optional. If not specified, an XAML file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
xamlFileNameis null.-or-
If thesvgStreamis null.- ArgumentException
If the
xamlFileNameis empty.
Convert(TextReader, string)
This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.
public bool Convert(TextReader svgTextReader, string xamlFileName)
Parameters
svgTextReaderTextReaderA text reader providing access to the SVG source data.
xamlFileNamestringThe output XAML file. This is optional. If not specified, an XAML file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
xamlFileNameis null.-or-
If thesvgTextReaderis null.- ArgumentException
If the
xamlFileNameis empty.
Convert(XmlReader, string)
This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.
public bool Convert(XmlReader svgXmlReader, string xamlFileName)
Parameters
svgXmlReaderXmlReaderAn XML reader providing access to the SVG source data.
xamlFileNamestringThe output XAML file. This is optional. If not specified, an XAML file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
xamlFileNameis null.-or-
If thesvgXmlReaderis null.- ArgumentException
If the
xamlFileNameis empty.