%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
RegisterFigure Method
See Also 
vdWebLibrary Namespace > ScriptCommands Class : RegisterFigure Method
figure
A temporary created figure that is not added in the document
drawit
A boolean value that defines if the figure will be drawn to the vdraw canvas bitmap
refresh
If it is true, refresh the canvas in order to see the change in the screen.
Add the passed figure to the active layout of the selected document and set a new HandleId for the figure. Also write the add action to the undo history so the figure will be mark as deleted if the user call the undo command.

Syntax

JScript 
public function RegisterFigure( 
   figure : Object,
   drawit : boolean,
   refresh : boolean
);

Parameters

figure
A temporary created figure that is not added in the document
drawit
A boolean value that defines if the figure will be drawn to the vdraw canvas bitmap
refresh
If it is true, refresh the canvas in order to see the change in the screen.

See Also