SVGBuilderExtensions.OnKeyPress

SVGBuilderExtensions.OnKeyPress<TBuilder> method

Sets the ‘onkeypress’ event attribute for handling keypress events on the element.

public static TBuilder OnKeyPress<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 key is pressed and released.

Return Value

The builder instance for chaining.

See Also