Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Color Class

The Color class represents an RGB color with transparency. The color values must be between 0.0 and 1.0.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.Model.UIColor

Namespace:  Tekla.Structures.Model.UI
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
[SerializableAttribute]
public sealed class Color

The Color type exposes the following members.

Constructors
  Name Description
Public method Color
Creates a new color object. The default object is black.
Public method Color(Double, Double, Double)
Creates a new color object with the given values.
Public method Color(Double, Double, Double, Double)
Creates a new color object with the given values.
Top
Properties
  Name Description
Public property Blue
The blue value of the color, between 0.0 and 1.0.
Public property Green
The green value of the color, between 0.0 and 1.0.
Public property Red
The red value of the color, between 0.0 and 1.0.
Public property Transparency
The transparency value of the color, between 0.0 (completely see-through) and 1.0 (completely solid).
Top
Examples
using Tekla.Structures.Model.UI;

public class Example
{
       public void Example1()
       {
           Color SolidGreen = new Color(0.0, 1.0, 0.0);
           Color SeeThroughBlue = new Color(0.0, 0.0, 1.0, 0.5);
       }
}
See Also