# TXBarcodeCore.GetSVG Method

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXBarcode.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXBarcode.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Barcode > TXBarcodeCore.GetSVG Method
- **428 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/getsvg-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/getsvg-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/getsvg-method/llms-full.txt

---

### Description

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

### Syntax

```csharp
public string GetSVG(Size size);
```

```vbnet
Public Function GetSVG(size As Size) As String
```

### Parameters

| Parameter | Description |
|---|---|
| size | Specifies the size of the SVG. |

### Examples

The following example retrieves svg from the txbarcode core.

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

```vbnet
Dim result = tXBarcodeCore.GetSVG(New System.Drawing.Size(600, 400))
Console.WriteLine($"Get SVG result: {result}")
```

### Remarks

The size parameter updates the [TXBarcodeCore.Size](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/size-property/llms-full.txt) property value.

---

## Nearby

- **Previous:** [TXBarcodeCore.GetMinimumTextLength Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/getminimumtextlength-method/llms-full.txt)
- **Next:** [TXBarcodeCore.IsTextValid Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/istextvalid-method/llms-full.txt)
