MaxItemCount Property

Applies to TestComplete 15.20, last modified on January 19, 2022

Specifies the maximum number of items the component can store.

Declaration

componentPropObj.MaxItemCount
Read-Write Property Boolean
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxMRUEditProperties

Description

Use the MaxItemCount property to specify the maximum number of values the component can store. If the total number of values exceed the MaxItemCount, recently added values will push older values out of the list. By default, MaxItemCount is 0 and means that the component does not limit the number of stored values.

Do not confuse the MaxItemCount property with the LookupItems.Count property. The latter specifies the current number of stored values, while MaxItemCount specifies the maximum allowed number.

Property Value

An integer value that specifies the maximum number of values that can be stored in the TcxMRUEdit component.

See Also

TcxMRUEdit Object
TStrings.Count
LookupItems Property

Highlight search results