%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddRect Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddRect Method
point1
The first point of the vdRect.
point2
The second point of the vdRect.
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 AddRect( 
   point1 : Object,
   point2 : Object,
   drawit : boolean,
   entities : Object
) : Object;

Parameters

point1
The first point of the vdRect.
point2
The second point of the vdRect.
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