ContextMenuItem.from_stock_action_with_label
Description:
[ CCode ( has_construct_function = false ) ]
public ContextMenuItem.from_stock_action_with_label (ContextMenuAction action, string label)
public ContextMenuItem.from_stock_action_with_label (ContextMenuAction action, string label)
Creates a new ContextMenuItem for the given stock action using the given
label
.
Stock actions have a predefined label, this method can be used to create a ContextMenuItem for a ContextMenuAction but using a custom label.
Parameters:
action |
a ContextMenuAction stock action |
label |
a custom label text to use instead of the predefined one |
Returns:
the newly created ContextMenuItem object. |