%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
colorToString Method
See Also 
vdWebLibrary Namespace > vdConst Class : colorToString Method
color
Convert a color to a string value and returns the string value.

Syntax

JScript 
public function colorToString( 
   color : Object
) : String;

Parameters

color

Remarks

Returns 'bylayer' if the passed color has ColorFlag ByLayer. Returns 'byblock' if the passed color has ColorFlag ByBlock. Returns an integer in range 0 to 254 as string that represends the document palette index,if the passed color has ColorFlag ByColorIndex. Returns the Red,Green,Blue,Alpha values as string if the passed color has ColorFlag ByTrueColor.

See Also