TX Text Control .NET Server

AddUndoUnit Method

Method|Introduced in 18.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as 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();

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.");