SVGBuilderExtensions.OnScroll

SVGBuilderExtensions.OnScroll<TBuilder> method

Sets the ‘onscroll’ event attribute for handling scroll events on the element.

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

Return Value

The builder instance for chaining.

See Also