ContainerVisual.Children 属性

定义

获取 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

属性值

VisualCollection

一个 VisualCollection,包含 ContainerVisual 的子对象。

示例

以下示例演示如何从ContainerVisual对象中检索VisualCollection该对象。

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

适用于