VisualComponentAddToComponent Method (Visual, String, IEnumerableVisual) |
Add a list of visuals to a component (or create a component).
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 10.0.0.6737
Syntaxpublic static void AddToComponent(
this Visual component,
string componentType,
IEnumerable<Visual> visuals
)
Parameters
- component
- Type: Demo3D.VisualsVisual
The root of the component. - componentType
- Type: SystemString
The component type. - visuals
- Type: System.Collections.GenericIEnumerableVisual
The list of visuals to add to the component.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Visual. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also