System.Classes.CollectionsEqual

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CollectionsEqual(const C1, C2: TCollection; const Owner1, Owner2: TComponent): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall CollectionsEqual(TCollection* const C1, TCollection* const C2, TComponent* const Owner1, TComponent* const Owner2);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Compares the contents of two collections.

Call CollectionsEqual to determine whether two collections contain identical information. CollectionsEqual returns true if all the items in each collection have the same settings, and the items appear in the same order. CollectionsEqual returns false if the collections differ in number or order of items, or if any of the items in the collections differ.

C1 and C2 are the collections to compare.

Owner1 and Owner2 are the Owners of the collections. Owner1 and Owner2 must be "root" components, such as forms or data modules. They are used for resolving name references in the properties of the collections.

See Also