# TXDrawingCore.GetSVG Method

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

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

---

### Description

Creates and returns a string representing a Scalable Vector Graphics (SVG) of the [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/llms-full.txt).

### Syntax

```csharp
public string GetSVG(Size size, bool showHandles);
```

```vbnet
Public Function GetSVG(size As Size, showHandles As Boolean) As String
```

### Parameters

| Parameter | Description |
|---|---|
| size | Specifies the size of the SVG. |
| showHandles | Determines whether the resize and adjust handles of the [selected shapes](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/selection-property/llms-full.txt) are displayed. |

### Examples

The following example retrieves svg from the txdrawing core.

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

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

### Remarks

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

---

## Nearby

- **Previous:** [TXDrawingCore.Cut Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/cut-method/llms-full.txt)
- **Next:** [TXDrawingCore.IsCanvasVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/iscanvasvisible-property/llms-full.txt)
