TX Text Control .NET for WPF

GetSVG Method

Method|Introduced in 33.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public string GetSVG(Size size, bool showHandles);

Parameters

ParameterDescription
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}");

Remarks

The size parameter updates the TXDrawingCore.Size property value.