SVGBuilderExtensions.OnCopy

SVGBuilderExtensions.OnCopy<TBuilder> method

Sets the ‘oncopy’ event attribute, defining a script to run when content is copied from the SVG element.

public static TBuilder OnCopy<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 copy event.

Return Value

The builder instance for chaining.

See Also