procedure SetCapacity(NewCapacity: Integer); virtual;
virtual void __fastcall SetCapacity(int NewCapacity);
Changes the amount of memory allocated to hold strings in the list.
Integer is the number of strings the list can hold after the capacity has changed.
In TWideStrings, SetCapacity does nothing. Descendant classes override this method to change the number of strings that the list can hold. For descendant classes that implement SetCapacity, assigning a value smaller than Count removes strings from the end of the list. Assigning a value greater than Count allocates space for more strings to be added.