Vcl.ActnMenus.TMenuStack.Peek
Delphi
function Peek: TCustomActionMenuBar;
C++
HIDESBASE TCustomActionMenuBar* __fastcall Peek();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ActnMenus.pas Vcl.ActnMenus.hpp |
Vcl.ActnMenus | TMenuStack |
Description
Returns a pointer to the next item in the list.
Vcl.ActnMenus.TMenuStack.Peek inherits from System.Contnrs.TOrderedList.Peek. All content below this line refers to System.Contnrs.TOrderedList.Peek.
Returns a pointer to the next item in the list.
Call Peek to access the list without removing an item. Peek returns a pointer to the next item in the list.
Each TOrderedList descendant implements Peek to return a specific item from the list. For example, TQueue returns the item that was added first, while TStack returns the item that was added last.
To remove an item from the list, call Pop.