Skip to main content
Table of Contents

TTMSFNCPopupMenu.GetMenuItemByText Method

Returns the first item whose Text matches the given string, or nil if not found.

API unit family: TMSFNCPopupMenu Declaring type: TTMSFNCPopupMenu Inherited from: TTMSFNCCustomPopupMenu

Syntax

FMX.TMSFNCPopupMenu.hppPascalC++
function GetMenuItemByText(AText: string): TTMSFNCMenuItem;
TTMSFNCMenuItem* __fastcall GetMenuItemByText(System::UnicodeString AText);

Parameters

Name Description
AText Text to search for in top-level items.

Returns

The first matching TTMSFNCMenuItem, or nil if not found.