Show: Delphi C++
Display Preferences

System.Classes.TComponent.ValidateContainer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ValidateContainer(AComponent: TComponent); dynamic;

C++

DYNAMIC void __fastcall ValidateContainer(TComponent* AComponent);

Properties

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

Description

Determines whether an object can be inserted into a container.

ValidateContainer is called by a component when it is about to be inserted into a container object. By default, ValidateContainer calls the ValidateInsert method of the component specified by the AComponent parameter.

Descendent components can override ValidateContainer to disallow a component from being inserted into specific containers. To disallow an insertion, raise an exception in the derived method.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance