%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
penwidth Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : penwidth Method
nvalue
A positive number that represents the width in drawing units.In order to have 1 pixel width the lineweight and penwidth must be both 0
Set the passed penwidth as active. Commands that create new objects like line select this penwidth for the created entities.

Syntax

JScript 
public function penwidth( 
   nvalue : double
);

Parameters

nvalue
A positive number that represents the width in drawing units.In order to have 1 pixel width the lineweight and penwidth must be both 0

Example

C#Copy Code
vdrawobj.scriptCommand.penwidth(2.5); 
vdrawobj.scriptCommand.line();//all the user lines will be added using the a penwidth of 2.5 drawing units.

Remarks

If the active penwidth is 0 then the active lineweight is used

See Also