Open(String, Dictionary<String, String>) Method

Definition

Namespace Svg
Assembly Svg.Custom.dll

Opens the document at the specified path and loads the SVG contents.

[Obsolete("Use Open<T>(string path, SvgOptions svgOptions)")]
public static T Open<T>(string path, Dictionary<string, string> entities)
    where T : SvgDocument, new()

Type parameters

T

Parameters

path
String?

A String? containing the path of the file to open.

entities
Dictionary<String, String>

A dictionary of custom entity definitions to be used when resolving XML entities within the document.

Returns

{T}
An SvgDocument with the contents loaded.