Method AddRect2
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
AddRect2(object, double, double, double, bool, object)
Adds a new vdRect in the document.
public object AddRect2(object insertion, double width, double height, double rotation, bool drawit, object entities)
Parameters
insertionobjectThe insertion point of the vdRect.
widthdoubleThe width of the vdRect.
heightdoubleThe height of the vdRect.
rotationdoubleThe rotation of the vdRect in radians.
drawitboolDefines if the vdPolyline object will be drawn right after inserted or it will be drawn next time the whole document is redrawn.
entitiesobjectThe entities collection where the rectangle will be added. This can be the entities of layout or a block.
Returns
- object
The vdRect object created.
Remarks
Attention, the source .vds file is not modified.