Constructs a new AcCmEntityColor.
Initial color method (defaults to ByColor)
Internal packed value (defaults to 0)
The method used to determine the final color.
Defaults to AcCmColorMethod.ByColor (RGB).
Gets the blue component (0–255). Only valid when colorMethod = ByColor.
Sets the blue component and updates the packed RGB value.
Gets the AutoCAD Color Index (ACI). Only valid when colorMethod = ByACI.
Sets the AutoCAD Color Index (ACI).
Gets the method used to determine the final color.
Gets the green component (0–255). Only valid when colorMethod = ByColor.
Sets the green component and updates the packed RGB value.
Gets the referenced layer index. Only valid when colorMethod = ByLayer.
Sets the layer index for ByLayer color mode.
Gets the packed internal value.
Sets a raw internal value. The meaning depends on colorMethod.
Gets the red component (0–255). Only valid when colorMethod = ByColor.
Sets the red component and updates the packed RGB value.
Represents an AutoCAD-like entity color object.
This class mimics ObjectARX
AcCmEntityColor. It stores:AcCmColorMethod)valuethat represents:It uses lazy decoding/encoding to expose convenient getters/setters.