Struct Color
Represents a graphic color.
Implements
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: TopSolid.Kernel.Automating.dll
Syntax
[DataContract]
[AvailableSinceVersion(7, 6, 0, 0)]
public struct Color : IEquatable<Color>
Remarks
This structure is available since v7.6.
Constructors
| Name | Description |
|---|---|
| Color(byte, byte, byte) | Initializes a new instance of the Color structure with its RGB intensities. |
Fields
| Name | Description |
|---|---|
| Black | Black color. |
| Blue | Blue color. |
| Cyan | Cyan color. |
| DarkBlue | Dark blue color. |
| DarkCyan | Dark cyan color. |
| DarkGray | Dark gray color. |
| DarkGreen | Dark green color. |
| Empty | Empty color. |
| Gray | Gray color. |
| Green | Green color. |
| LightBlue | Light blue color. |
| LightGray | Light gray color. |
| LightGreen | Light green color. |
| LightYellow | Lights yellow color. |
| Magenta | Magenta color. |
| Orange | Orange color. |
| Pink | Pink color. |
| Red | Red color. |
| Violet | Violet color. |
| White | White color. |
| Yellow | Yellow color. |
Properties
| Name | Description |
|---|---|
| B | Gets the color blue intensity. |
| G | Gets the color green intensity. |
| IsEmpty | Tells whether the color is empty. |
| R | Gets the color red intensity. |
Methods
| Name | Description |
|---|---|
| Equals(object) | |
| Equals(Color) | |
| GetHashCode() | |
| ToString() |
Operators
| Name | Description |
|---|---|
| operator ==(Color, Color) | Compares two colors. |
| operator !=(Color, Color) | Compares two colors. |