SilverScreen Solid Modeler

ATTRIBUTE_NODE

ATTRIBUTE_NODE

Previous topic Next topic  

ATTRIBUTE_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.ATTRIBUTE_NODE

 

Structure

A SilverSharp.ATTRIBUTE_NODE stores a property value for an attribute that is associated with a schema.

 

 

 

C# Code

 

 class ATTRIBUTE_NODE

    {

    [System::Flags]

    class AttributeBits

       {

       ATT_STRING     = 0X0001,

       ATT_NUMBER     = 0X0002,

       ARE_FIXED      = 0X0004,

       NOT_FIXED      = 0X0008,

       ATT_CREATED    = 0X0010,

       HAS_VALUE      = 0X0020,

       };

 

    property AttributeBits  bits        { get; }

    property double         the_double  { get; }

    property string         name        { get; }

    property string         value       { get; }

 

    property int?           precision   { get; }

 

    string ToString();

    };

 

 

 

Properties

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

 

Member

Description

bits

Attribute bit-flags whose meaning is as follows:

 

Constant

Meaning

ARE_FIXED

The attribute value is fixed (cannot be changed)

ATT_CREATED

The attribute has been created

ATT_NUMBER

The attribute is a number

ATT_STRING

The attribute is a string

HAS_VALUE

The attribute contains a string or numeric value

NOT_FIXED

The attribute value is not fixed

name

Name of the attribute

precision

Display precision for attribute if present, otherwise null

the_double

The attribute's double-precision floating-point value if ATT_NUMBER flag is set in bits.

value

The attribute's string value if ATT_STRING flag is set in bits

 

 

Methods

Member

Description

ToString

Formats the ATTRIBUTE_NODE as a string

 

 

See Also

SCHEMA_NODE, BLOCK_NODE, OBJECT_NODE, SilverC ATTRIBUTE_NODE