SilverScreen Solid Modeler

TEXT_NODE

TEXT_NODE

Previous topic Next topic  

TEXT_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.TEXT_NODE

 

Structure

An entity-level data type that is used to store the information associated with a SilverScreen text line.

 

 

 

C# Code

 

 class TEXT_NODE sealed : BOS_NODE

    {

    TEXT_NODE(TEXT_NODE rhs);

    TEXT_NODE(string text_path);

 

    enum DirectionTypes

       {

       IS_HORIZONTAL   = 1,

       IS_VERTICAL     = 2,

       IS_DIAGONAL     = 3,

       };

 

    enum JustificationTypes

       {

       IS_LEFT         = 1,

       IS_RIGHT        = 2,

       IS_CENTERED     = 3,

       IS_ALIGNED      = 4,

       };

 

    property DirectionTypes     direction      { get; }

    property JustificationTypes justification  { get; }

 

    readonly FONT_NODE  font_ptr;

 

    property MATRIX     matrix            { get; }

    property SS_XYZ     start             { get; }

    property SS_XYZ     xyz2              { get; }

    property double     height            { get; }

    property double     width_ratio       { get; }

    property double     spacing_ratio     { get; }

    property double     slant             { get; }

    property double     angle             { get; }

    property double     total_width       { get; }

    property double     total_height      { get; }

    property string     text              { get; }

    property int        underscore        { get; }

    property int        overscore         { get; }

    property SS_RGB     text_rgb          { get; }

    property WidthStyle text_width_style  { get; }

    property bool       is_filled         { get; }

    };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC TEXT_NODE:

 

Member

Description

matrix

The transformation matrix that is applied to the font geometry to render the text line.

xyz2

A value whose meaning depends upon the setting of justification

 

If justification is

Meaning of xyz2

IS_RIGHT

It is the right point of the text

IS_CENTER

It is the center point of the text

IS_ALIGNED

It is the right point of the text

 

height

Height of the text

width_ratio

Height-to-width ratio of the text

spacing_ratio

Horizontal spacing ratio of the text

slant

Angle of slant (in degrees) of the text

angle

Angle of rotation (in degrees) of the text

total_width

Total width of the text

total_height

Total height of the text

text

A string object that holds the text being displayed.

font_ptr

pointer to the FONT_NODE that describes the font being used to display the text.

underscore

A value whose meaning is

 

Value

Meaning

0

The text is not underscored

1

The text is underscored by a single line

2

The text is underscored by a double line

 

overscore

If overscore is 0, the text is not overscored. If overscore is 1 it is.

text_rgb

The color that is used to render the text

text_width_style

The width and style index that is used to render the text.

is_filled

A value that is true if the text is filled, and false if it is not.

 

The following read-only properties extend TEXT_NODE for SilverSharp:

 

Member

Description

start

Start point for display of the text. This property replaces the 'where' SilverC equivalent (see remarks).

direction

A DirectionType enumeration that indicates the text direction as follows

 

Constant

Meaning

IS_HORIZONTAL

The text is horizontal

IS_VERTICAL

The text is vertical

IS_DIAGONAL

The text is diagonal

IS_ALIGNED

The text is aligned to an axis

justification

A JustificationType enumeration that indicates the text justification as follows

 

Constant

Meaning

IS_LEFT

The text is left-justified

IS_CENTER

The text is centered

IS_RIGHT

The text is right-justified

IS_ALIGNED

The text is aligned to an axis

 

 

Methods

Name

Description

TEXT_NODE

Constructors to initialize the object

 

 

Remarks

The SilverC TEXT_NODE field 'where' was changed to the SilverSharp TEXT_NODE property 'start' because where is a C# clause used in a query expressions

 

 

See Also

Entity types