SVGBuilderExtensions.FormatSvgLengths

SVGBuilderExtensions.FormatSvgLengths method

Formats an array of double values into a string representation of SVG lengths.

public static string FormatSvgLengths(double[] values, LengthType type)
ParameterTypeDescription
valuesDouble[]The array of double values representing lengths.
typeLengthTypeThe type of length unit to use (e.g., pixels).

Return Value

A formatted string of SVG lengths.

Remarks

This utility method is used to format length values for SVG attributes, appending the appropriate unit (like ‘px’) to each value.

See Also