Click or drag to resize

VisualComponentIsComponentRoot Method (Visual, String)

Returns true if this visual is the root of its component.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 10.0.0.6737
Syntax
C#
public static bool IsComponentRoot(
	this Visual visual,
	params string[] componentTypes
)

Parameters

visual
Type: Demo3D.VisualsVisual
The visual to inspect.
componentTypes
Type: SystemString
List of component types to select from.

Return Value

Type: Boolean
True if the visual is a component root of any of the component types.

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