%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
layout Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : layout Method
name
The name of an existing layout or 'model' for the default document Model layout.
Set the passed layout name as active. Commands that create new objects like line add the created entities to that layout.

Syntax

JScript 
public function layout( 
   name : String
);

Parameters

name
The name of an existing layout or 'model' for the default document Model layout.

Example

C#Copy Code
vdrawobj.scriptCommand.layout("myLayout1"); 
vdrawobj.scriptCommand.line();//all the user lines will be added to the layout 'myLayout1' is exist or to 'model' if not exist.

Remarks

If the passed name does not exist in the GetLayouts then the default Model is used.

See Also