SVGBuilderExtensions.OnUnload

SVGBuilderExtensions.OnUnload<TBuilder> method

Sets the ‘onunload’ event attribute, defining a script to run when the SVG document is unloaded.

public static TBuilder OnUnload<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IDocumentEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when the document is unloaded.

Return Value

The builder instance for chaining.

See Also