AddUndoUnit Method
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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();Public Sub 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.");barcodeFrame.AddUndoUnit()
Console.WriteLine("Barcode Frame is ready for use.")