SVGBuilderExtensions.OnPaste

SVGBuilderExtensions.OnPaste<TBuilder> method

Sets the ‘onpaste’ event attribute, defining a script to run when content is pasted into the SVG element.

public static TBuilder OnPaste<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IDocumentElementEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute on the paste event.

Return Value

The builder instance for chaining.

See Also