set_attribute_string


Description:

[ Version ( since = "1.4" ) ]
public void set_attribute_string (Menu menu, uint position, string attribute, string value)

Overwrites an attribute for a menu that was created by MenuManager.

This can be useful when you want to update an attribute such as "accel" when an accelerator has changed due to user mappings.

Parameters:

this

a MenuManager

menu

the menu that was retreived with get_menu_by_id

position

the index of the item in the menu

attribute

the attribute to change

value

the new value for the attribute