TableRowGroupCollection.TrimToSize Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Optimizes memory consumption for the collection by setting the underlying collection Capacity equal to the Count of items currently in the collection.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void TrimToSize()

This method can be used to minimize memory overhead for a collection, particularly if the set of items contained by the collection is expected to be static.

.NET Framework
Available since 3.0
Return to top
Show: