Svg.Custom exposes the URI-based lookup surface that the SVG sources already implement internally via SvgElementIdManager.
The original submodule-side fix added these overloads directly to SvgDocument
so retained-scene code could resolve references like file.svg#id without falling
back to string-only lookups. Keeping the overloads in a partial class preserves the same
forwarding behavior while avoiding a public-API delta in the externals/SVG checkout.
public class SvgDocument : SvgFragment, ISvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgViewPort, ITypeDescriptorContext, IServiceProvider
kind:method, kind:property, kind:ctor. Press Esc to clear.SvgDocument()Initializes a new instance of the SvgDocument class.DisableDtdProcessingSkip the Dtd Processing for faster loading of svgs that have a DTD specified. For Example Adobe Illustrator svgs.ExternalCSSHrefGets or sets an external Cascading Style Sheet (CSS)IdManagerGets an SvgElementIdManager for this document.PpiGets or sets the Pixels Per Inch of the rendered image.ResolveExternalElementsWhich types of external elements, for example text definitions, are allowed to be resolved. Defaults to Local and Remote.ResolveExternalImagesWhich types of external images are allowed to be resolved. Defaults to Local and Remote.ResolveExternalXmlEntitesWhich types of XML external entities are allowed to be resolved. Defaults to None to prevent XXE.FromSvg<T>(String)Attempts to create an SVG document from the specified string data.GetElementById(String)Retrieves the SvgElement with the specified ID.GetElementById(Uri)Retrieves the SvgElement with the specified URI reference.GetElementById<TSvgElement>(String)Retrieves the SvgElement with the specified ID.GetElementById<TSvgElement>(Uri)Retrieves the SvgElement with the specified URI reference.Open(String)Opens the document at the specified path and loads the SVG contents.Open(XmlDocument)Opens an SVG document from the specified XmlDocument.Open<T>(Stream, SvgOptions)Opens an SVG document from the specified Stream and adds the specified entities.Open<T>(Stream, Dictionary<String, String>)Opens an SVG document from the specified Stream and adds the specified entities.Open<T>(Stream)Attempts to open an SVG document from the specified Stream.Open<T>(String, SvgOptions)Opens the document at the specified path and loads the SVG contents.Open<T>(String, Dictionary<String, String>)Opens the document at the specified path and loads the SVG contents.Open<T>(String)Opens the document at the specified path and loads the SVG contents.Open<T>(XmlReader)Attempts to open an SVG document from the specified XmlReader.OverwriteIdManager(SvgElementIdManager)Overwrites the current IdManager with a custom implementation. Be careful with this: If elements have been inserted into the document before, you have to take care that the new IdManager also knows of them.RasterizeDimensions(ref SizeF, Int32, Int32)If both or one of raster height and width is not given (0), calculate that missing value from original SVG size while keeping original SVG size ratio