BarcodeSvgRenderer Class

Provides methods to render a barcode as an SVG string.

public static class BarcodeSvgRenderer

Methods

NameDescription
ToSvg(Barcode)Renders the barcode as an SVG string with default options.
ToSvg(Barcode, BarcodeSvgOptions)Renders the barcode as an SVG string with the specified options.

ToSvg overloads

ToSvg(Barcode)

BarcodeSvgRenderer.cs

Renders the barcode as an SVG string with default options.

public static string ToSvg(this Barcode barcode)
Parameters
barcode Barcode
Returns

string

ToSvg(Barcode, BarcodeSvgOptions)

BarcodeSvgRenderer.cs

Renders the barcode as an SVG string with the specified options.

public static string ToSvg(this Barcode barcode, BarcodeSvgOptions options)
Parameters
barcode Barcode
options BarcodeSvgOptions
Returns

string