SvgSymbol.FromFile Methods
Creates a new instance of the SvgSymbol class from an external SVG file.
Overload List
Name | Description | |
---|---|---|
FromFile(System.String path, System.String fileName) | Creates a new instance of the SvgSymbol class from an external SVG file. | |
FromFile(System.String path, System.String fileName, HotspotOrigin hotspotOrigin, System.Int32 xHot, System.Int32 yHot) | Creates a new instance of the SvgSymbol class from an external SVG file. |
FromFile(System.String path, System.String fileName)
Creates a new instance of the SvgSymbol class from an external SVG file.Syntax
public static SvgSymbol FromFile (
System.String path,
System.String fileName
)
Parameters
The path to the directory where the file containing the SVG document is located.
The name of the file containing the SVG document.
Return Value
Remarks
Note that this constructor will set HotspotOrigin to Legacy.
FromFile(System.String path, System.String fileName, HotspotOrigin hotspotOrigin, System.Int32 xHot, System.Int32 yHot)
Creates a new instance of the SvgSymbol class from an external SVG file.Syntax
public static SvgSymbol FromFile (
System.String path,
System.String fileName,
HotspotOrigin hotspotOrigin,
System.Int32 xHot,
System.Int32 yHot
)
Parameters
The path to the directory where the file containing the SVG document is located.
The name of the file containing the SVG document.
The x-coordinate of the hot spot.
The y-coordinate of the hot spot.
Return Value
Remarks
See the HotspotOrigin property for details about how the parameters are interpreted.
Platforms
Windows, Linux, Android