Vcl.Ribbon.TCustomRibbon.AddRecentItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddRecentItem(const FileName: string): Integer;

C++

int __fastcall AddRecentItem(const System::UnicodeString FileName);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Ribbon.pas
Vcl.Ribbon.hpp
Vcl.Ribbon TCustomRibbon

Description

Add new entry into Recent Items list.

Call AddRecentItem to add a new entry into the Recent Items list to the right of the Application Menu. The new entry is automatically added to the top of the Recent items list, and if an entry with the same filename already exists, it is deleted.

This method should only be called when the command type for the application menu is set to ctRecent.