Children Property

ContainerVisual.Children Property

 

Gets the child collection of the ContainerVisual.

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

public VisualCollection Children { get; }

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)
{
    VisualCollection collection = containerVisual.Children;
}

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