SVGBuilderExtensions.ViewBox

SVGBuilderExtensions.ViewBox<TBuilder> method

Sets the ‘viewBox’ attribute for an SVG element.

public static TBuilder ViewBox<TBuilder>(this TBuilder builder, double minX, double minY, 
    double width, double height)
    where TBuilder : ISVGElementBuilder, IViewBoxAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
minXThe minimum X coordinate of the viewBox.
minYThe minimum Y coordinate of the viewBox.
widthThe width of the viewBox.
heightThe height of the viewBox.

Return Value

The builder instance for chaining.

See Also