SilverScreen Solid Modeler

TEXT_NODE methods

TEXT_NODE methods

Previous topic Next topic  

TEXT_NODE methods

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

TEXT_NODE(TEXT_NODE rhs)

TEXT_NODE(string txt_path);

 

TEXT_NODE rhs;       // A SilverSharp.TEXT_NODE object

string    txt_path;  // A System.String object

 

 




Synopsis

using SilverSharp;

 

The TEXT_NODE constructors create and initialize a SilverSharp.TEXT_NODE object. The first form makes a shallow copy of another SilverSharp.TEXT_NODE object. The second form creates a SilverSharp.TEXT_NODE from a path to a block entity.

 

 

Parameters

rhs is a SilverSharp.TEXT_NODE object from which a shallow copy will be made.

 

txt_path is a path to a SilverScreen text-line entity

 

 

Return Value

TEXT_NODE returns a SilverSharp.TEXT_NODE object.

 

 

Remarks

If txt_path specifies an invalid path, then the inherited IsEmpty method will return true.

 

 

See Also

TEXT_NODE, Entity Types

 

 

Example

The following code shows how to construct a SilverSharp.TEXT_NODE object.

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 TEXT_NODE txt = new TEXT_NODE("text-line \\text1");

 

 if ( BOS_NODE.IsEmpty(txt) )

    return;