GetSVG Method
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
Description
Creates and returns a string representing a Scalable Vector Graphics (SVG) of the shapes.
Syntax
public string GetSVG(Size size, bool showHandles);Public Function GetSVG(size As Size, showHandles As Boolean) As StringParameters
| Parameter | Description |
|---|---|
| size | Specifies the size of the SVG. |
| showHandles | Determines whether the resize and adjust handles of the selected shapes are displayed. |
Examples
The following example retrieves svg from the txdrawing core.
var result = tXDrawingCore.GetSVG(new System.Drawing.Size(600, 400), true);
Console.WriteLine($"Get SVG result: {result}");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 property value.