SVGBuilderExtensions.AddDefs

SVGBuilderExtensions.AddDefs<TBuilder> method

Adds a ‘defs’ (definitions) element configuration to the builder.

public static TBuilder AddDefs<TBuilder>(this TBuilder builder, 
    Action<SVGDefsElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IStructuralElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureThe configuration action for the ‘defs’ element.

Return Value

The builder instance for chaining.

See Also