VisualComponentBelongsToComponent Method |
Returns true if this visual belongs to a specific component.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 10.0.0.6737
Syntaxpublic static bool BelongsToComponent(
this Visual visual,
Visual component,
string componentType
)
Parameters
- visual
- Type: Demo3D.VisualsVisual
The visual to inspect. - component
- Type: Demo3D.VisualsVisual
The component to check. - componentType
- Type: SystemString
The component type.
Return Value
Type:
BooleanTrue if this visual belongs 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