SVGBuilderExtensions.GradientUnits

SVGBuilderExtensions.GradientUnits<TBuilder> method

Sets the ‘gradientUnits’ attribute for a gradient element.

public static TBuilder GradientUnits<TBuilder>(this TBuilder builder, CoordinateUnits units)
    where TBuilder : ISVGElementBuilder, IGradientStopElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder to which the attribute is applied.
unitsThe coordinate units for the gradient (userSpaceOnUse or objectBoundingBox).

Return Value

The builder instance for chaining.

See Also