Open(String, SvgOptions) Method

Definition

Namespace Svg
Assembly Svg.Custom.dll

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

public static T Open<T>(string path, SvgOptions svgOptions)
    where T : SvgDocument, new()

Type parameters

T

Parameters

path
String?

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

svgOptions
SvgOptions

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

Returns

{T}
A SvgDocument with the contents loaded.