Vcl.Menus.TMenuItem.Count

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Count: Integer read GetCount;

C++

__property int Count = {read=GetCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Indicates the number of subitems of the menu item.

Read Count to determine the number of subitems listed in the Items property array. When the user clicks on a menu item that has subitems, a dropdown menu appears which displays those subitems. Each subitem can, in turn, contain additional subitems. The Count property counts only the immediate subitems of the menu item.

See Also

Code Examples