SVGBuilderExtensions.OnDrag

SVGBuilderExtensions.OnDrag<TBuilder> method

Sets the ‘ondrag’ event attribute for handling drag actions on the element.

public static TBuilder OnDrag<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 during a drag operation.

Return Value

The builder instance for chaining.

See Also