%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddLayout Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddLayout Method
layoutname
Adds a new empty layout to document with name "test" and return the Layout index id

Syntax

JScript 
public function AddLayout( 
   layoutname : String
) : int;

Parameters

layoutname

Return Value

The Layout index id

Remarks

if layout already exist then returns the existing layout index id. Warning: the passed layout name must not be 'model' or equal to the document.Model name uses the SetActiveLayoutId with the return id in order to make it active.

See Also