- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class MenuItem : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
MenuItem
- Implements
-
- Inherited Members
-
Constructors
protected MenuItem(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
protected MenuItem(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Methods
[Version("2.34")]
public Variant? GetAttributeValue(string attribute, VariantType? expectedType)
Parameters
attribute
string
expectedType
VariantType
Returns
- Variant
public static Type GetGType()
Returns
- Type
[Version("2.34")]
public MenuModel? GetLink(string link)
Parameters
link
string
Returns
- MenuModel
[Version("2.32")]
public static MenuItem New(string? label, string? detailedAction)
Parameters
label
string
detailedAction
string
Returns
- MenuItem
[Version("2.34")]
public static MenuItem NewFromModel(MenuModel model, int itemIndex)
Parameters
model
MenuModel
itemIndex
int
Returns
- MenuItem
[Version("2.32")]
public static MenuItem NewSection(string? label, MenuModel section)
Parameters
label
string
section
MenuModel
Returns
- MenuItem
[Version("2.32")]
public static MenuItem NewSubmenu(string? label, MenuModel submenu)
Parameters
label
string
submenu
MenuModel
Returns
- MenuItem
SetActionAndTargetValue(string?, Variant?)
[Version("2.32")]
public void SetActionAndTargetValue(string? action, Variant? targetValue)
Parameters
action
string
targetValue
Variant
[Version("2.32")]
public void SetAttributeValue(string attribute, Variant? value)
Parameters
attribute
string
value
Variant
[Version("2.32")]
public void SetDetailedAction(string detailedAction)
Parameters
detailedAction
string
[Version("2.38")]
public void SetIcon(Icon icon)
Parameters
icon
Icon
[Version("2.32")]
public void SetLabel(string? label)
Parameters
label
string
[Version("2.32")]
public void SetLink(string link, MenuModel? model)
Parameters
link
string
model
MenuModel
[Version("2.32")]
public void SetSection(MenuModel? section)
Parameters
section
MenuModel
[Version("2.32")]
public void SetSubmenu(MenuModel? submenu)
Parameters
submenu
MenuModel