TX Text Control .NET for WPF

Load Method

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

Description

Loads shapes data into the TX Drawing Control from a specified object of type System.IO.Stream.

Syntax

public void Load(Stream stream);

Parameters

ParameterDescription
stream

Specifies an object of type System.IO.Stream the data is loaded from. The data is loaded from the stream's current position.

Examples

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

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