SVGScriptElementBuilder Class

SVGScriptElementBuilder class

Builder class for constructing an SVG ‘script’ element. The ‘script’ element is used to embed or reference executable scripts within SVG documents. This class provides methods to set various attributes specific to the ‘script’ element, such as type, source, and cross-origin settings.

public class SVGScriptElementBuilder : SVGElementBuilder<SVGScriptElement>, ICoreAttributeSetter, 
    IDocumentElementEventAttributeSetter, IGlobalEventAttributeSetter

Constructors

NameDescription
SVGScriptElementBuilder()The default constructor.

Properties

NameDescription
Configurations { get; }

Methods

NameDescription
Attribute(string, string)
virtual Build(Document)
virtual Build(SVGScriptElement)
BuildElement(Document)
Crossorigin(string)Sets the ‘crossorigin’ attribute of the SVG ‘script’ element, specifying the CORS settings for the external script.
Href(string)Sets the ‘href’ attribute of the SVG ‘script’ element, specifying the URL of an external script file.
Type(string)Sets the ’type’ attribute of the SVG ‘script’ element, specifying the scripting language type (e.g., “text/javascript”).

See Also