Method SetItems
SetItems(IMenuProperties)
Replaces all existing items with the items defined in the specified menu.
public virtual void SetItems(IMenuProperties menu)
Parameters
menuIMenuPropertiesAn object that provides the menu items to be set. Cannot be null.
Remarks
This method removes all current items before adding the new items from the specified menu. The operation is performed within a layout update to ensure consistency.