TableRowGroupCollection.TrimToSize Method ()


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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft