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
svgFileName
stringThe full path of the SVG source file.
Returns
Exceptions
- ArgumentNullException
If the
svgFileName
is null.- ArgumentException
If the
svgFileName
is empty.-or-
If thesvgFileName
does 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
svgFileName
stringThe full path of the SVG source file.
xamlFileName
stringThe 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
svgFileName
is null.- ArgumentException
If the
svgFileName
is empty.-or-
If thesvgFileName
does 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
svgStream
StreamA stream providing access to the SVG source data.
xamlFileName
stringThe 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
xamlFileName
is null.-or-
If thesvgStream
is null.- ArgumentException
If the
xamlFileName
is 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
svgTextReader
TextReaderA text reader providing access to the SVG source data.
xamlFileName
stringThe 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
xamlFileName
is null.-or-
If thesvgTextReader
is null.- ArgumentException
If the
xamlFileName
is 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
svgXmlReader
XmlReaderAn XML reader providing access to the SVG source data.
xamlFileName
stringThe 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
xamlFileName
is null.-or-
If thesvgXmlReader
is null.- ArgumentException
If the
xamlFileName
is empty.