Table of Contents

Method Assign

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

Assign(IMenuItemProperties)

Assigns the properties of the specified menu item to the current instance.

public virtual void Assign(IMenuItemProperties menuItem)

Parameters

menuItem IMenuItemProperties

The menu item whose properties are to be assigned. Cannot be null.

Remarks

This method updates the current instance's properties, such as images, visibility, enabled state, and shortcut, based on the values provided by the menuItem. If the menuItem has an SVG image, it is set using the SetSvgImage method; otherwise, the standard and disabled images are assigned directly.