MenuItemList
Overview
Represents the list of menu items. MenuItemList is used by the SubMenu class to define the list of child menu items.
Location
- Reference: RemObjects.Hydra.dll
- Namespace: RemObjects.Hydra.Actions
- Ancestry: Component | MenuItemList
constructor
Creates a new instance of the class.
Parameters:
- aOwner: Reference to the owner object.
Add
Adds the specified MenuItem to the list.
Parameters:
- aMenuItem: Reference to the item.
Assign
method Assign(source: Object)
void Assign(Object source)
Sub Assign(source As Object)
Parameters:
- source:
Clear
Removes all the MenuItem elements from the list.
method Clear
void Clear()
Sub Clear()
Count
Gets the number of the MenuItem elements in the list.
property Count: Int32 read;
Int32 Count { get; }
ReadOnly Property Count() As Int32
Insert
Inserts the specified MenuItem element into the specified position.
method Insert(aIndex: Int32; aMenuItem: MenuItem)
void Insert(Int32 aIndex, MenuItem aMenuItem)
Sub Insert(aIndex As Int32, aMenuItem As MenuItem)
Parameters:
- aIndex: Index of the item.
- aMenuItem: Reference to the item.
MenuItems
Returns reference to the item at the specified position.
property MenuItems[aIndex: Int32]: MenuItem read write;
MenuItem MenuItems[Int32 aIndex] { get; set; }
Property MenuItems(aIndex As Int32) As MenuItem
Remove
Removes the specified MenuItem from the list.
method Remove(aMenuItem: MenuItem)
void Remove(MenuItem aMenuItem)
Sub Remove(aMenuItem As MenuItem)
Parameters:
- aMenuItem: Reference to the item.
RemoveAt
Removes the MenuItem element at the specified position.
method RemoveAt(aIndex: Int32)
void RemoveAt(Int32 aIndex)
Sub RemoveAt(aIndex As Int32)
Parameters:
- aIndex: Index of the item.
Count
Gets the number of the MenuItem elements in the list.
property Count: Int32 read;
Int32 Count { get; }
ReadOnly Property Count() As Int32
MenuItems
Returns reference to the item at the specified position.
constructor
Creates a new instance of the class.
Parameters:
- aOwner: Reference to the owner object.
Add
Adds the specified MenuItem to the list.
Parameters:
- aMenuItem: Reference to the item.
Assign
method Assign(source: Object)
void Assign(Object source)
Sub Assign(source As Object)
Parameters:
- source:
Clear
Removes all the MenuItem elements from the list.
method Clear
void Clear()
Sub Clear()
Insert
Inserts the specified MenuItem element into the specified position.
method Insert(aIndex: Int32; aMenuItem: MenuItem)
void Insert(Int32 aIndex, MenuItem aMenuItem)
Sub Insert(aIndex As Int32, aMenuItem As MenuItem)
Parameters:
- aIndex: Index of the item.
- aMenuItem: Reference to the item.
Remove
Removes the specified MenuItem from the list.
method Remove(aMenuItem: MenuItem)
void Remove(MenuItem aMenuItem)
Sub Remove(aMenuItem As MenuItem)
Parameters:
- aMenuItem: Reference to the item.
RemoveAt
Removes the MenuItem element at the specified position.
method RemoveAt(aIndex: Int32)
void RemoveAt(Int32 aIndex)
Sub RemoveAt(aIndex As Int32)
Parameters:
- aIndex: Index of the item.
- SubMenu Class