%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddLine Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddLine Method
startpoint
The line's startpoint.
endpoint
The line's endpoint.
drawit
Defines if the vdLine object will be drawn.
entities
The entities collection where the line will be added. This can be the entities of layout or a block.
Adds a new vdLine in the document.

Syntax

JScript 
public function AddLine( 
   startpoint : Object,
   endpoint : Object,
   drawit : boolean,
   entities : Object
) : Object;

Parameters

startpoint
The line's startpoint.
endpoint
The line's endpoint.
drawit
Defines if the vdLine object will be drawn.
entities
The entities collection where the line will be added. This can be the entities of layout or a block.

Return Value

The vdLyline object created.

Remarks

You can create new points by using the newpoint method. Attention, the source .vds file is not modified.

See Also