CanUndo Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Gets a value indicating whether the user can undo the previous operation.
Syntax
public bool CanUndo { get; }Public ReadOnly Property CanUndo As BooleanExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.CanUndo.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
if (textViewGenerator.CanUndo)
{
textViewGenerator.Undo();
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
If textViewGenerator.CanUndo Then
textViewGenerator.Undo()
End IfLimitations
Runtime only.
Read only.