SilverScreen Solid Modeler

ToString method

ToString method

Previous topic Next topic  

ToString method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

string ToString()

 

 

 

 

 




Synopsis

using SilverSharp;

 

The ToString method formats a SilverSharp.SS_RGB object as a string

 

 

Parameters

none

 

 

Return Value

ToString returns a System.String object that represents a SilverScreen color. The value might be a named color like "light-red", otherwise it will be an rgb-triple of the form r#g#b#.

 

 

See Also

SS_RGB

 

 

Example

The following code creates an SS_RGB object, then uses it in a command:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 SS_RGB red = new SS_RGB(255, 0, 0);

 

 . . .

 

 SC.ss_command("redraw object \obj1 color {0}", red);