Revit 2023 API |
EffectInstance..::..SetColor Method |
EffectInstance Class See Also |
Sets the color parameter of the effect instance.
Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2017
Syntax
C# |
---|
public void SetColor( Color color ) |
Visual Basic |
---|
Public Sub SetColor ( _ color As Color _ ) |
Visual C++ |
---|
public: void SetColor( Color^ color ) |
Parameters
- color
- Type: Autodesk.Revit.DB..::..Color
The color value.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |