System.Classes.TComponent.ValidateContainer

From RAD Studio API Documentation
Revision as of 23:12, 16 October 2011 by PyBot (talk | contribs) (Scoping Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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