%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
SetActiveView Method
See Also  Example
vdWebLibrary Namespace > vdrawObj Class : SetActiveView Method
view
A string that defines an existing view name or an existing view object
change the active layout and the zoom properties according to the passed view

Syntax

JScript 
public function SetActiveView( 
   view : Object
);

Parameters

view
A string that defines an existing view name or an existing view object

Example

For example we create a new view and we set it active.
C#Copy Code
var view = vdcanvas.AddView("newview"); 
view.ViewRenderMode = vdConst.RENDERMODE_SHADE_GL; 
vdcanvas.SetActiveView(view); // -or-  vdcanvas.SetActiveView("newview");

See Also