- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class Menu : MenuModel, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Menu
- Implements
-
- Inherited Members
-
Constructors
public Menu(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Menu(MenuHandle)
public Menu(MenuHandle handle)
Parameters
handle
MenuHandle
Methods
[Version("2.32")]
public void Append(string? label, string? detailedAction)
Parameters
label
string
detailedAction
string
[Version("2.32")]
public void AppendItem(MenuItem item)
Parameters
item
MenuItem
[Version("2.32")]
public void AppendSection(string? label, MenuModel section)
Parameters
label
string
section
MenuModel
[Version("2.32")]
public void AppendSubmenu(string? label, MenuModel submenu)
Parameters
label
string
submenu
MenuModel
[Version("2.32")]
public void Freeze()
public static Type GetGType()
Returns
- Type
[Version("2.32")]
public void Insert(int position, string? label, string? detailedAction)
Parameters
position
int
label
string
detailedAction
string
[Version("2.32")]
public void InsertItem(int position, MenuItem item)
Parameters
position
int
item
MenuItem
[Version("2.32")]
public void InsertSection(int position, string? label, MenuModel section)
Parameters
position
int
label
string
section
MenuModel
[Version("2.32")]
public void InsertSubmenu(int position, string? label, MenuModel submenu)
Parameters
position
int
label
string
submenu
MenuModel
[Version("2.32")]
public static Menu New()
Returns
- Menu
[Version("2.32")]
public void Prepend(string? label, string? detailedAction)
Parameters
label
string
detailedAction
string
[Version("2.32")]
public void PrependItem(MenuItem item)
Parameters
item
MenuItem
[Version("2.32")]
public void PrependSection(string? label, MenuModel section)
Parameters
label
string
section
MenuModel
[Version("2.32")]
public void PrependSubmenu(string? label, MenuModel submenu)
Parameters
label
string
submenu
MenuModel
[Version("2.32")]
public void Remove(int position)
Parameters
position
int
[Version("2.38")]
public void RemoveAll()