DesignIntf.ISelectionEditor.PrepareItem

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
DesignIntf.pas
DesignIntf.hpp
Unit: DesignIntf
Parent: ISelectionEditor

Delphi

procedure PrepareItem(Index: Integer; const AItem: IMenuItem);

C++

virtual void __fastcall PrepareItem(int Index, const Designmenus::_di_IMenuItem AItem) = 0 ;

Description

PrepareItem is called for each verb while constructing the context menu.

The AItem parameter is the menu item used to represent the verb. The component editor can customize the menu item, including adding subitems. If you want a specific item to be hidden, set its Visible property to False, rather than freeing it.