TX Text Control .NET Server

GetSVG Method

Method|Introduced in 33.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.Core.SDK as TXBarcode.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXBarcode.dll

Description

Creates and returns a string representing a Scalable Vector Graphics (SVG) of the barcode.

Syntax

public string GetSVG(Size size);

Parameters

ParameterDescription
size

Specifies the size of the SVG.

Examples

The following example retrieves svg from the txbarcode core.

var result = tXBarcodeCore.GetSVG(new System.Drawing.Size(600, 400));
Console.WriteLine($"Get SVG result: {result}");

Remarks

The size parameter updates the TXBarcodeCore.Size property value.