Table of Contents

Class TreeListRow

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class TreeListRow : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
TreeListRow
Implements
Inherited Members

Constructors

TreeListRow(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 TreeListRow(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

TreeListRow(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TreeListRow(CreationData data)

Parameters

data CreationData

TreeListRow(TreeListRowHandle)

protected TreeListRow(TreeListRowHandle handle)

Parameters

handle TreeListRowHandle

Fields

ChildrenPropertyDefinition

public static readonly Property<ListModel, TreeListRow> ChildrenPropertyDefinition

Field Value

Property<ListModel, TreeListRow>

DepthPropertyDefinition

public static readonly Property<uint, TreeListRow> DepthPropertyDefinition

Field Value

Property<uint, TreeListRow>

ExpandablePropertyDefinition

public static readonly Property<bool, TreeListRow> ExpandablePropertyDefinition

Field Value

Property<bool, TreeListRow>

ExpandedPropertyDefinition

public static readonly Property<bool, TreeListRow> ExpandedPropertyDefinition

Field Value

Property<bool, TreeListRow>

ItemPropertyDefinition

public static readonly Property<Object?, TreeListRow> ItemPropertyDefinition

Field Value

Property<Object, TreeListRow>

Properties

Children

public ListModel Children { get; }

Property Value

ListModel

Depth

public uint Depth { get; }

Property Value

uint

Expandable

public bool Expandable { get; }

Property Value

bool

Expanded

public bool Expanded { get; set; }

Property Value

bool

Item

public Object? Item { get; }

Property Value

Object

Methods

GetChildRow(uint)

public TreeListRow? GetChildRow(uint position)

Parameters

position uint

Returns

TreeListRow

GetChildren()

public ListModel? GetChildren()

Returns

ListModel

GetDepth()

public uint GetDepth()

Returns

uint

GetExpanded()

public bool GetExpanded()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetItem()

public Object? GetItem()

Returns

Object

GetParent()

public TreeListRow? GetParent()

Returns

TreeListRow

GetPosition()

public uint GetPosition()

Returns

uint

IsExpandable()

public bool IsExpandable()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed TreeListRow instance for a given pointer.

public static TreeListRow NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

TreeListRow

NewWithProperties(ConstructArgument[])

Creates a new TreeListRow and sets the properties specified by the construct arguments.

public static TreeListRow NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

TreeListRow

SetExpanded(bool)

public void SetExpanded(bool expanded)

Parameters

expanded bool