Table of Contents

Class ListBox

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class ListBox : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
Inheritance
ListBox
Implements
Inherited Members

Constructors

ListBox()

public ListBox()

ListBox(params ConstructArgument[])

protected ListBox(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ListBox(IntPtr, bool)

protected ListBox(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptUnpairedReleasePropertyDefinition

public static readonly Property<bool, ListBox> AcceptUnpairedReleasePropertyDefinition

Field Value

Property<bool, ListBox>

ActivateCursorRowSignal

Signal Descriptor for OnActivateCursorRow.

public static readonly Signal<ListBox> ActivateCursorRowSignal

Field Value

Signal<ListBox>

ActivateOnSingleClickPropertyDefinition

public static readonly Property<bool, ListBox> ActivateOnSingleClickPropertyDefinition

Field Value

Property<bool, ListBox>

MoveCursorSignal

Signal Descriptor for OnMoveCursor.

public static readonly Signal<ListBox, ListBox.MoveCursorSignalArgs> MoveCursorSignal

Field Value

Signal<ListBox, ListBox.MoveCursorSignalArgs>

RowActivatedSignal

Signal Descriptor for OnRowActivated.

public static readonly Signal<ListBox, ListBox.RowActivatedSignalArgs> RowActivatedSignal

Field Value

Signal<ListBox, ListBox.RowActivatedSignalArgs>

RowSelectedSignal

Signal Descriptor for OnRowSelected.

public static readonly Signal<ListBox, ListBox.RowSelectedSignalArgs> RowSelectedSignal

Field Value

Signal<ListBox, ListBox.RowSelectedSignalArgs>

SelectAllSignal

Signal Descriptor for OnSelectAll.

public static readonly Signal<ListBox> SelectAllSignal

Field Value

Signal<ListBox>

SelectedRowsChangedSignal

Signal Descriptor for OnSelectedRowsChanged.

public static readonly Signal<ListBox> SelectedRowsChangedSignal

Field Value

Signal<ListBox>

SelectionModePropertyDefinition

public static readonly Property<SelectionMode, ListBox> SelectionModePropertyDefinition

Field Value

Property<SelectionMode, ListBox>

ShowSeparatorsPropertyDefinition

public static readonly Property<bool, ListBox> ShowSeparatorsPropertyDefinition

Field Value

Property<bool, ListBox>

ToggleCursorRowSignal

Signal Descriptor for OnToggleCursorRow.

public static readonly Signal<ListBox> ToggleCursorRowSignal

Field Value

Signal<ListBox>

UnselectAllSignal

Signal Descriptor for OnUnselectAll.

public static readonly Signal<ListBox> UnselectAllSignal

Field Value

Signal<ListBox>

Properties

AcceptUnpairedRelease

public bool AcceptUnpairedRelease { get; set; }

Property Value

bool

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

ActivateOnSingleClick

public bool ActivateOnSingleClick { get; set; }

Property Value

bool

SelectionMode

public SelectionMode SelectionMode { get; set; }

Property Value

SelectionMode

ShowSeparators

public bool ShowSeparators { get; set; }

Property Value

bool

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

Append(Widget)

public void Append(Widget child)

Parameters

child Widget

BindModel(ListModel?, ListBoxCreateWidgetFunc?)

public void BindModel(ListModel? model, ListBoxCreateWidgetFunc? createWidgetFunc)

Parameters

model ListModel
createWidgetFunc ListBoxCreateWidgetFunc

DragHighlightRow(ListBoxRow)

public void DragHighlightRow(ListBoxRow row)

Parameters

row ListBoxRow

DragUnhighlightRow()

public void DragUnhighlightRow()

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActivateOnSingleClick()

public bool GetActivateOnSingleClick()

Returns

bool

GetAdjustment()

public Adjustment? GetAdjustment()

Returns

Adjustment

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRowAtIndex(int)

public ListBoxRow? GetRowAtIndex(int index)

Parameters

index int

Returns

ListBoxRow

GetRowAtY(int)

public ListBoxRow? GetRowAtY(int y)

Parameters

y int

Returns

ListBoxRow

GetSelectedRow()

public ListBoxRow? GetSelectedRow()

Returns

ListBoxRow

GetSelectionMode()

public SelectionMode GetSelectionMode()

Returns

SelectionMode

GetShowSeparators()

public bool GetShowSeparators()

Returns

bool

Insert(Widget, int)

public void Insert(Widget child, int position)

Parameters

child Widget
position int

InvalidateFilter()

public void InvalidateFilter()

InvalidateHeaders()

public void InvalidateHeaders()

InvalidateSort()

public void InvalidateSort()

New()

public static ListBox New()

Returns

ListBox

Prepend(Widget)

public void Prepend(Widget child)

Parameters

child Widget

Remove(Widget)

public void Remove(Widget child)

Parameters

child Widget

RemoveAll()

[Version("4.12")]
public void RemoveAll()

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SelectAll()

public void SelectAll()

SelectRow(ListBoxRow?)

public void SelectRow(ListBoxRow? row)

Parameters

row ListBoxRow

SelectedForeach(ListBoxForeachFunc)

public void SelectedForeach(ListBoxForeachFunc func)

Parameters

func ListBoxForeachFunc

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetActivateOnSingleClick(bool)

public void SetActivateOnSingleClick(bool single)

Parameters

single bool

SetAdjustment(Adjustment?)

public void SetAdjustment(Adjustment? adjustment)

Parameters

adjustment Adjustment

SetFilterFunc(ListBoxFilterFunc?)

public void SetFilterFunc(ListBoxFilterFunc? filterFunc)

Parameters

filterFunc ListBoxFilterFunc

SetHeaderFunc(ListBoxUpdateHeaderFunc?)

public void SetHeaderFunc(ListBoxUpdateHeaderFunc? updateHeader)

Parameters

updateHeader ListBoxUpdateHeaderFunc

SetPlaceholder(Widget?)

public void SetPlaceholder(Widget? placeholder)

Parameters

placeholder Widget

SetSelectionMode(SelectionMode)

public void SetSelectionMode(SelectionMode mode)

Parameters

mode SelectionMode

SetShowSeparators(bool)

public void SetShowSeparators(bool showSeparators)

Parameters

showSeparators bool

SetSortFunc(ListBoxSortFunc?)

public void SetSortFunc(ListBoxSortFunc? sortFunc)

Parameters

sortFunc ListBoxSortFunc

UnselectAll()

public void UnselectAll()

UnselectRow(ListBoxRow)

public void UnselectRow(ListBoxRow row)

Parameters

row ListBoxRow

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

Events

OnActivateCursorRow

public event SignalHandler<ListBox> OnActivateCursorRow

Event Type

SignalHandler<ListBox>

OnMoveCursor

public event SignalHandler<ListBox, ListBox.MoveCursorSignalArgs> OnMoveCursor

Event Type

SignalHandler<ListBox, ListBox.MoveCursorSignalArgs>

OnRowActivated

public event SignalHandler<ListBox, ListBox.RowActivatedSignalArgs> OnRowActivated

Event Type

SignalHandler<ListBox, ListBox.RowActivatedSignalArgs>

OnRowSelected

public event SignalHandler<ListBox, ListBox.RowSelectedSignalArgs> OnRowSelected

Event Type

SignalHandler<ListBox, ListBox.RowSelectedSignalArgs>

OnSelectAll

public event SignalHandler<ListBox> OnSelectAll

Event Type

SignalHandler<ListBox>

OnSelectedRowsChanged

public event SignalHandler<ListBox> OnSelectedRowsChanged

Event Type

SignalHandler<ListBox>

OnToggleCursorRow

public event SignalHandler<ListBox> OnToggleCursorRow

Event Type

SignalHandler<ListBox>

OnUnselectAll

public event SignalHandler<ListBox> OnUnselectAll

Event Type

SignalHandler<ListBox>