The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VisualCollection.Clear Method ()


Removes all elements from the VisualCollection.

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

public void Clear()

The Count is reset to zero. The value of the Capacity remains unchanged. To reset the capacity of the VisualCollection, set the Capacity property to the desired size.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft