RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.Find Method

Locates a menu item in the Items property array given its caption.

Pascal
function Find(ACaption: string): TMenuItem;
C++
__fastcall TMenuItem Find(AnsiString ACaption);

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++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!