Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Visual3D.GetVisual3DChild Method (Int32)

 
System_CAPS_noteNote

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

Returns the specified Visual3D in the parent Visual3DCollection.

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

protected virtual Visual3D GetVisual3DChild(
	int index
)

Parameters

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
ArgumentOutOfRangeException

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
Show:
© 2018 Microsoft