%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
linetype Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : linetype Method
name
The name of an existing linetype .
Set the passed linetype name as active. Commands that create new objects like line select this linetype for the created entities.

Syntax

JScript 
public function linetype( 
   name : String
);

Parameters

name
The name of an existing linetype .

Example

C#Copy Code
vdrawobj.scriptCommand.linetype("hidden"); 
vdrawobj.scriptCommand.line();//all the user lines will be added using the 'hidden' linetype.

Remarks

If the passed name does not exist in the GetLineTypes then does nothing.

See Also