Table of Contents

TTMSFNCCustomPopupMenu.GetMenuItemByText Method

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

API unit family: TMSFNCPopupMenu Declaring type: 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.