Color Class |
The Color class represents an RGB color with transparency. The color values must be between 0.0 and 1.0.
Namespace: Tekla.Structures.Model.UI
Assembly: Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2024.0.0+a110b435391768740483e3032720a566518c9a63
The Color type exposes the following members.
| Name | Description | |
|---|---|---|
| Color |
Creates a new color object. The default object is black.
| |
| Color(Double, Double, Double) |
Creates a new color object with the given values.
| |
| Color(Double, Double, Double, Double) |
Creates a new color object with the given values.
|
| Name | Description | |
|---|---|---|
| Blue |
The blue value of the color, between 0.0 and 1.0.
| |
| Green |
The green value of the color, between 0.0 and 1.0.
| |
| Red |
The red value of the color, between 0.0 and 1.0.
| |
| Transparency |
The transparency value of the color, between 0.0 (completely see-through) and 1.0 (completely solid).
|
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); } }