Define a TStrings class that can grow only so much, such as for Recent Files lists. A TMaxCountStrings object will raise an exception when the capacity of the list is exceeded.
Important Note
|
MaxCount should be set before adding strings
|
Namespace: Structures
Delphi
|
type
TMaxCountStrings = class(TStringList)
end;
|
|
Name
|
Description
|
|
Create
|
Constructs the TMaxCountStrings object and initializes it to accept an unlimited number of strings.
|
Top
|
|
Name
|
Description
|
|
MaxCount
|
Specifies how large the string list can grow. A value of -1 means that there is no limit.
|
Top
|