Visual3D.GetVisual3DChild Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the specified Visual3D in the parent Visual3DCollection.

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

abstract GetVisual3DChild : 
        index:int -> Visual3D
override GetVisual3DChild : 
        index:int -> Visual3D


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