[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets the ordinal position in Items for the menu item with the specified Caption.
Source position: menus.pp line 270
public function TMenuItem.IndexOfCaption( |
const ACaption: string |
):Integer; virtual; |
ACaption |
|
Caption text to locate in the child Items for the menu item. |
Ordinal position for the menu item with the given caption, or -1 when not found.
IndexOfCaption visits the TMenuItem instances in the Items property to locate the menu item with the Caption specified in ACaption. Case is significant when comparing the value in ACaption to the menu item(s).
The return value contains the ordinal position in Items for the menu item with the specified caption, or -1 when a menu item is not found.
|
Provides indexed access to the child menu items for the current class instance. |
|
|
The caption text displayed for the menu item. |
Version 3.2 | Generated 2024-02-25 | Home |