CompositePrimitiveAdd Method |
Adds a primitive to the composite.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic void Add(
Primitive primitive
)
Public Sub Add (
primitive As Primitive
)
public:
void Add(
Primitive^ primitive
)
member Add :
primitive : Primitive -> unit
Parameters
- primitive
- Type: AGI.Foundation.GraphicsPrimitive
The primitive to add to the composite.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | primitive is null.
|
| ArgumentException | primitive doesn't have the same
ReferenceFrame
as the composite.
|
| ArgumentException | primitive already exists in another composite or the primitive manager.
|
See Also