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