SVGBuilderExtensions.OnSelect

SVGBuilderExtensions.OnSelect<TBuilder> method

Sets the ‘onselect’ event attribute for handling text selection events on the element.

public static TBuilder OnSelect<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 text is selected within the element.

Return Value

The builder instance for chaining.

See Also