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

function GetMenuItemByText(AText: string): TTMSFNCMenuItem;

Parameters

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

Returns

The first matching TTMSFNCMenuItem, or nil if not found.