%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
vdrawObject Method
See Also  Example
vdWebLibrary Namespace > vdmanager Class : vdrawObject Method
canvasId
The id of the HTML canvas object assigned to the desired document.
Returns the vdrawobject that corresponds to the given canvas.

Syntax

JScript 
public function vdrawObject( 
   canvasId : String
) : vdrawObj;

Parameters

canvasId
The id of the HTML canvas object assigned to the desired document.

Return Value

Returns the found vdrawObject or null if no object is found.

Example

C#Copy Code
function vdrawInitPageLoad() { 
    vdmanager.AttachCanvas('canvas', 400, 400); 
    var vdobject = vdmanager.vdrawObject('canvas'); 
 
    vdcanvas.SetDefaultTimeOutMilliseconds(400); 
}

See Also