2027 Class
Changes 0
C

Color

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