Vcl.Menus.TMenuItem.Find
Delphi
function Find(ACaption: string): TMenuItem;
C++
TMenuItem* __fastcall Find(System::UnicodeString ACaption);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenuItem |
Description
Locates a menu item in the Items property array given its caption.
Use Find to locate the menu item in the Items property array with the caption specified by the ACaption parameter. Find ignores accelerator characters when comparing item captions to the ACaption parameter.
Find returns the first menu item in the Items property array with the specified caption. If no item is found, Find returns nil (Delphi) or NULL (C++).