GetVisual3DChild Method

Visual3D.GetVisual3DChild Method (Int32)

.NET Framework (current version)

Returns the specified Visual3D in the parent Visual3DCollection.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

protected virtual Visual3D GetVisual3DChild(
	int index


Type: System.Int32

The index of the 3-D visual object in the collection.

Return Value

Type: System.Windows.Media.Media3D.Visual3D

The child in the collection at the specified index value.

Exception Condition

The index value is not valid.

By default, a Visual has no children.

The GetVisual3DChild method is introduced in .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

Notes to Inheritors:

To correctly enumerate the visual tree, a class that derives from Visual3D must override this method and also override the Visual3DChildrenCount property.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft