THYMenuItemDefList

Overview

The THYMenuItemDefList class is a collection of THYMenuItemDef items.

Location


 

constructor Create (THYPluginControlsRepository)  reintroduce

Creates a new instance of the class.

constructor Create(aRepository: THYPluginControlsRepository)

Parameters:

  • aRepository: Reference to the controls repository.

constructor Create (THYPluginControlsRepository, TCollectionItemClass)  reintroduce    (declared in THYRepositoryCollection)

Creates a new instance of the class.

constructor Create(aRepository: THYPluginControlsRepository; anItemType: TCollectionItemClass)

Parameters:

  • aRepository: Reference to the controls repository.
  • anItemType: Type of the item class.

Add  reintroduce

Creates new menu item.

function Add: THYMenuItemDef

GetOwner  protected override    (declared in THYRepositoryCollection)

Returns the THYPluginControlsRepository that merges menus or toolbars.

function GetOwner: TPersistent

Insert  reintroduce

Creates new menu item and insert it into the specified position.

function Insert(Index: Integer): THYMenuItemDef

Parameters:

  • Index: Index of the item.

Items

Creates new menu item and insert it into the specified position.

property Items[Index: Integer]: THYMenuItemDef read write

Repository    (declared in THYRepositoryCollection)

Gets the THYPluginControlsRepository control that merges menus and toolbars.

property Repository: THYPluginControlsRepository read write

 

Items

Creates new menu item and insert it into the specified position.

property Items[Index: Integer]: THYMenuItemDef read write

Repository    (declared in THYRepositoryCollection)

Gets the THYPluginControlsRepository control that merges menus and toolbars.

property Repository: THYPluginControlsRepository read write

 

constructor Create (THYPluginControlsRepository)  reintroduce

Creates a new instance of the class.

constructor Create(aRepository: THYPluginControlsRepository)

Parameters:

  • aRepository: Reference to the controls repository.

constructor Create (THYPluginControlsRepository, TCollectionItemClass)  reintroduce    (declared in THYRepositoryCollection)

Creates a new instance of the class.

constructor Create(aRepository: THYPluginControlsRepository; anItemType: TCollectionItemClass)

Parameters:

  • aRepository: Reference to the controls repository.
  • anItemType: Type of the item class.

Add  reintroduce

Creates new menu item.

function Add: THYMenuItemDef

GetOwner  protected override    (declared in THYRepositoryCollection)

Returns the THYPluginControlsRepository that merges menus or toolbars.

function GetOwner: TPersistent

Insert  reintroduce

Creates new menu item and insert it into the specified position.

function Insert(Index: Integer): THYMenuItemDef

Parameters:

  • Index: Index of the item.