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 |
|---|---|---|---|
| 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. | |
| 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. | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. | APIObject |