TX Text Control .NET for WPF

AddUndoUnit Method

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

Description

Adds the current state of the barcode which is connected with this BarcodeFrame to the undo stack. Programmatic changes performed with the barcode's properties and methods are not automatically added to a TextControl's undo stack. Calling this method is not necessary, when the barcode frame's layout in the text is changed.

Syntax

public void AddUndoUnit();

Examples

The following example adds the current barcode frame change to the undo history. The created object is then available to the surrounding document workflow.

barcodeFrame.AddUndoUnit();
Console.WriteLine("Barcode Frame is ready for use.");