%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddRect2 Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddRect2 Method
insertion
The insertion point of the vdRect.
width
The width of the vdRect.
height
The height of the vdRect.
rotation
The rotation of the vdRect in radians.
drawit
Defines if the vdPolyline object will be drawn right after inserted or it will be drawn next time the whole document is redrawn.
entities
The entities collection where the rectangle will be added. This can be the entities of layout or a block.
Adds a new vdRect in the document.

Syntax

JScript 
public function AddRect2( 
   insertion : Object,
   width : double,
   height : double,
   rotation : double,
   drawit : boolean,
   entities : Object
) : Object;

Parameters

insertion
The insertion point of the vdRect.
width
The width of the vdRect.
height
The height of the vdRect.
rotation
The rotation of the vdRect in radians.
drawit
Defines if the vdPolyline object will be drawn right after inserted or it will be drawn next time the whole document is redrawn.
entities
The entities collection where the rectangle will be added. This can be the entities of layout or a block.

Return Value

The vdRect object created.

Remarks

Attention, the source .vds file is not modified.

See Also