共用方式為


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

適用於