THYMenuItemDefList
Overview
The THYMenuItemDefList class is a collection of THYMenuItemDef items.
Location
- Unit: Hydra.VCL.PluginControlsRepository.pas
- Ancestry: TCollection | THYRepositoryCollection | THYMenuItemDefList
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
Gets or sets menu item with specified index.
property Items[Index: Integer]: THYMenuItemDef read write
Repository (declared in THYRepositoryCollection)
Gets the THYPluginControlsRepository control that merges menus and toolbars.
property Repository: THYPluginControlsRepository read
Items
Gets or sets menu item with specified index.
property Items[Index: Integer]: THYMenuItemDef read write
Repository (declared in THYRepositoryCollection)
Gets the THYPluginControlsRepository control that merges menus and toolbars.
property Repository: THYPluginControlsRepository read
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.