ContainerVisual.Children Property


Gets the child collection of the ContainerVisual.

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

Public ReadOnly Property Children As VisualCollection

Property Value

Type: System.Windows.Media.VisualCollection

A VisualCollection that contains the children of the ContainerVisual.

The following example shows how to retrieve the VisualCollection from a ContainerVisual object.

If containerVisual.Children.Count > 0 Then
	Dim collection As VisualCollection = containerVisual.Children
End If

.NET Framework
Available since 3.0
Return to top