AnnUndoDepth example for Delphi
//This example increases the length of the undo stack LEADAnn1.AnnUndoDepth:= LEADAnn1.AnnUndoDepth + 5;