Table of Contents

Method InsertMenuItemCore

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

InsertMenuItemCore(int, IMenuItemProperties)

Inserts a menu item at the specified index with the provided properties.

public virtual AbstractControl InsertMenuItemCore(int index, IMenuItemProperties menuItem)

Parameters

index int

The zero-based index at which the menu item should be inserted.

menuItem IMenuItemProperties

An 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.