prepend_section


Description:

public void prepend_section (string? label, MenuModel section)

Convenience function for prepending a section menu item to the start of this.

Combine MenuItem.section and insert_item for a more flexible alternative.

Parameters:

this

a Menu

label

the section label, or null

section

a MenuModel with the items of the section