RenderStyle constructor
Initializes a new instance of the RenderStyle
class. This constructor is used to create a RenderStyle with the specified name, colors, and transparency level.
public RenderStyle(string name, RGBA colors, double transparency)
parameter | description |
---|---|
name | The name of the render style. |
colors | The RGBA color values for the render style. |
transparency | The transparency level of the render style, which should be between 0 and 1. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when the name or colors are null. |
ArgumentOutOfRangeException | Thrown when the transparency is not within the range of 0 to 1. |
See Also
- class RGBA
- class RenderStyle
- namespace Autodesk.DataExchange.DataModels