Namespace:
Autodesk.Revit.DB
Color
Class
Description:
Represents a color in Autodesk Revit.
Represents a color in Autodesk Revit.
Remarks:
Colors obtained from some API methods may represent an uninitialized/invalid color. You can identify these using the IsValid property.
Colors obtained from some API methods may represent an uninitialized/invalid color. You can identify these using the IsValid property.
Color Class Members:
| Name | Description | Inherited From |
|---|---|---|
| Color | Constructor that takes the red, green and blue channels of the color. |
| Name | Description | Inherited From |
|---|---|---|
| Blue | Get the blue channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. | |
| Green | Get the green channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. | |
| InvalidColorValue | Get the invalid Color whose IntegerValue is -1. | |
| IsReadOnly | Identifies if the object is read-only or modifiable. (Inherited from APIObject ) | APIObject |
| IsValid | Identifies if the color represents a valid color, or an uninitialized/invalid value. | |
| Red | Get the red channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. |
| Name | Description | Inherited From |
|---|---|---|
| Dispose | Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) | APIObject |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | Gets the Type of the current instance. (Inherited from Object ) | Object |
| ToString | Returns a string that represents the current object. (Inherited from Object ) | Object |