GetSVG Method
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WinForms. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
Description
Creates and returns a string representing a Scalable Vector Graphics (SVG) of the barcode.
Syntax
public string GetSVG(Size size);Public Function GetSVG(size As Size) As StringParameters
| Parameter | Description |
|---|---|
| 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}");Dim 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.