TX Text Control .NET for WPF

Load Method

Method|Introduced in 29.0
Namespace
TXTextControl.WPF.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Loads barcode data into the control.

Syntax

Load(string)

Loads barcode data into the control from a specified file.

public void Load(string fileName);
ParameterDescription
fileName

Specifies a file the data is loaded from.

Load(Stream)

Loads barcode data into the control from a specified object of type System.IO.Stream.

public void Load(Stream stream);
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.

Load(TextReader)

Loads barcode data into the control from a specified object of type System.IO.TextReader.

public void Load(TextReader textReader);
ParameterDescription
textReader

Specifies an object of type System.IO.TextReader the data is loaded from.

Load(XmlReader)

Loads barcode data into the control from a specified object of type System.Xml.XmlReader.

public void Load(XmlReader xmlReader);
ParameterDescription
xmlReader

Specifies an object of type System.IO.XmlReader the data is loaded from.

Examples

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

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