GetElementById(Uri) Method

Definition

Namespace Svg
Assembly Svg.Custom.dll

Retrieves the SvgElement with the specified URI reference.

public virtual TSvgElement GetElementById<TSvgElement>(Uri uri)
    where TSvgElement : SvgElement

Type parameters

TSvgElement

Parameters

uri
Uri?

A Uri? containing the fragment or external reference to resolve.

Returns

{TSvgElement}
An SvgElement if one exists with the specified reference; otherwise null.