Method InsertMenuItemCore
InsertMenuItemCore(int, IMenuItemProperties)
Inserts a menu item at the specified index with the provided properties.
public virtual AbstractControl InsertMenuItemCore(int index, IMenuItemProperties menuItem)
Parameters
indexintThe zero-based index at which the menu item should be inserted.
menuItemIMenuItemPropertiesAn object containing the properties of the menu item, such as text, images, and click behavior.
Returns
- AbstractControl
A SpeedButton representing the inserted menu item.
Remarks
The menuItem parameter defines the appearance
and behavior of the menu item, including its text, images, and the action
to perform when clicked.