SVGBuilderExtensions.OnMouseDown

SVGBuilderExtensions.OnMouseDown<TBuilder> method

Sets the ‘onmousedown’ event attribute for handling mouse down events on the element.

public static TBuilder OnMouseDown<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IGlobalEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when a mouse button is pressed down on the element.

Return Value

The builder instance for chaining.

See Also