System.Classes.GroupDescendentsWith

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GroupDescendentsWith(AClass, AClassGroup: TPersistentClass);

C++

extern DELPHI_PACKAGE void __fastcall GroupDescendentsWith(TPersistentClass AClass, TPersistentClass AClassGroup);

Properties

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

Description

Adds a specified class to the group in which another class appears.

Call GroupDescendentsWith to add the class specified by AClass to the same group as the one that contains AClassGroup. If AClassGroup is a member of more than one group, GroupDescendentsWith adds AClass to the group that contains the nearest ancestor of AClassGroup. (The nearest ancestor is the ancestor for which CountGenerations returns the lowest value).

If AClassGroup is not a member of any group, GroupDescendentsWith raises an exception.

See Also