Color
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.
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Color(Byte, Byte, Byte) | None | Constructor that takes the red, green and blue channels of the color. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) | APIObject |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Blue | byte | Get the blue channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. | |
| Green | byte | Get the green channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. | |
| InvalidColorValue | Color | Get the invalid Color whose IntegerValue is -1. | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. (Inherited from APIObject ) | APIObject |
| IsValid | bool | Identifies if the color represents a valid color, or an uninitialized/invalid value. | |
| Red | byte | Get the red channel of the color. Setting a channel is obsolete in Autodesk Revit 2013. Please create a new color instead. |