SvgSymbol.FromSvg Methods
Creates a new instance of the SvgSymbol class from the supplied SVG code.
Overload List
| Name | Description | |
|---|---|---|
| FromSvg(System.String svg) | Creates a new instance of the SvgSymbol class from the supplied SVG code. | |
| FromSvg(System.String svg, HotspotOrigin hotspotOrigin, System.Int32 xHot, System.Int32 yHot) | Creates a new instance of the SvgSymbol class from the supplied SVG code. | 
FromSvg(System.String svg)
Creates a new instance of the SvgSymbol class from the supplied SVG code.Syntax
public static SvgSymbol FromSvg (
    System.String svg
)Parameters
The SVG code defining the symbol.
Return Value
Remarks
Note that this constructor will set HotspotOrigin to Legacy.
If you want to load an SVG symbol from a file on disk, use FromFile instead.
FromSvg(System.String svg, HotspotOrigin hotspotOrigin, System.Int32 xHot, System.Int32 yHot)
Creates a new instance of the SvgSymbol class from the supplied SVG code.Syntax
public static SvgSymbol FromSvg (
    System.String svg,
    HotspotOrigin hotspotOrigin,
    System.Int32 xHot,
    System.Int32 yHot
)Parameters
The SVG code defining the symbol.
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.
If you want to load an SVG symbol from a file on disk, use FromFile instead.
Platforms
Windows, Linux, Android