%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
undo Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : undo Method
Undone the last item stored in the undo list and the last command in script buffer.If an end group item is last then undone all items of the group in undo history.

Syntax

JScript 
public function undo();

Example

C#Copy Code
vdcanvas.UndoHistory().undo(); //make a single undo . Call it multi times until everything undone 
setTimeout(vdcanvas.redraw, 0); //send a redraw to timeout

Remarks

In order to update the screen view a redraw need to be called.

See Also