TX Text Control .NET for Windows Forms

Save Method

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

Description

Saves the shapes data to the given object of type System.IO.Stream.

Syntax

public void Save(Stream stream);

Parameters

ParameterDescription
stream

Specifies an object of type System.IO.Stream the data is saved to.

Examples

The following example saves document content in a specified format. The created object is then available to the surrounding document workflow.

tXDrawingControl.Save(new System.IO.MemoryStream());
Console.WriteLine("TXDrawing Control is ready for use.");