Class EnumListItem
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class EnumListItem : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
EnumListItem
- Implements
- Inherited Members
Constructors
EnumListItem(EnumListItemHandle)
protected EnumListItem(EnumListItemHandle handle)
Parameters
handleEnumListItemHandle
EnumListItem(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public EnumListItem(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
EnumListItem(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EnumListItem(CreationData data)
Parameters
dataCreationData
Fields
NamePropertyDefinition
public static readonly Property<string?, EnumListItem> NamePropertyDefinition
Field Value
NickPropertyDefinition
public static readonly Property<string?, EnumListItem> NickPropertyDefinition
Field Value
ValuePropertyDefinition
public static readonly Property<int, EnumListItem> ValuePropertyDefinition
Field Value
Properties
Name
public string? Name { get; }
Property Value
Nick
public string? Nick { get; }
Property Value
Value
public int Value { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetName()
public string GetName()
Returns
GetNick()
public string GetNick()
Returns
GetValue()
public int GetValue()
Returns
NewFromPointer(nint, bool)
Creates a new managed EnumListItem instance for a given pointer.
public static EnumListItem NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new EnumListItem and sets the properties specified by the construct arguments.
public static EnumListItem NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.