Sign in Join
FPDoc Onlineexperiment

TMenuItemEnumerator class

In unit Menus

Implements an enumerator for child menu items in the specified TMenuItem instance.

Declaration

pascal
TMenuItemEnumerator = class

Description

TMenuItemEnumerator is a class which implements an enumerator for child menu items for a specified TMenuItem instance. The menu item examined is passed as an argument to the constructor, and the reference is stored in an internal member variable.

TMenuItemEnumerator provides the MoveNext method used to advance the position for the enumerator, and the Current property which returns the TMenuItem instance in the child menu Items at the current enumerator position.

TMenuItemEnumerator is the type returned from the TMenuItem.GetEnumerator method.

See also

Properties

CurrentpublicContains the TMenuItem instance at the current position for the enumerator.

Methods

CreatepublicConstructor for the class instance.
MoveNextpublicMoves to the next position for the enumerator.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.