DesignEditors.GetComponentEditor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetComponentEditor(Component: TComponent; const Designer: IDesigner): IComponentEditor;

C++

extern DELPHI_PACKAGE Designintf::_di_IComponentEditor __fastcall GetComponentEditor(System::Classes::TComponent* Component, const Designintf::_di_IDesigner Designer);

Properties

Type Visibility Source Unit Parent
function public
DesignEditors.pas
DesignEditors.hpp
DesignEditors DesignEditors

Description

Returns a component editor for the specified component on the specified form designer.

If there is a component editor assigned to the class of the specified component, GetComponentEditor returns that component editor; otherwise, it returns the component editor assigned to the closest ancestor of Component that has a component editor assigned.

If there are no component editors assigned to components of the class of the specified component, GetComponentEditor returns an instance of the default editor.