ContainerVisual.Children Propriété

Définition

Obtient la collection enfant du ContainerVisual.Gets the child collection of the ContainerVisual.

public:
 property System::Windows::Media::VisualCollection ^ Children { System::Windows::Media::VisualCollection ^ get(); };
public System.Windows.Media.VisualCollection Children { get; }
member this.Children : System.Windows.Media.VisualCollection
Public ReadOnly Property Children As VisualCollection

Valeur de propriété

VisualCollection

VisualCollection qui contient les enfants du ContainerVisual.A VisualCollection that contains the children of the ContainerVisual.

Exemples

L’exemple suivant montre comment récupérer VisualCollection à partir d’un ContainerVisual objet.The following example shows how to retrieve the VisualCollection from a ContainerVisual object.

if (containerVisual.Children.Count > 0)
{
    VisualCollection collection = containerVisual.Children;
}
If containerVisual.Children.Count > 0 Then
    Dim collection As VisualCollection = containerVisual.Children
End If

S’applique à