AddUndoUnit Method
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Add the current state of the chart which is connected with this ChartFrame to the undo stack. Programmatic changes performed with the chart's properties and methods are not automatically added to a TextControl's undo stack. Calling this method is not necessary, when the chart frame's layout in the text is changed.
Syntax
public void AddUndoUnit();Public Sub AddUndoUnit()Examples
The following example adds the current chart frame change to the undo history. The created object is then available to the surrounding document workflow.
chartFrame.AddUndoUnit();
Console.WriteLine("Chart Frame is ready for use.");chartFrame.AddUndoUnit()
Console.WriteLine("Chart Frame is ready for use.")