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
Fields
AcceptUnpairedReleasePropertyDefinition
public static readonly Property<bool, ListBox> AcceptUnpairedReleasePropertyDefinition
Field Value
ActivateCursorRowSignal
Signal Descriptor for OnActivateCursorRow.
public static readonly Signal<ListBox> ActivateCursorRowSignal
Field Value
ActivateOnSingleClickPropertyDefinition
public static readonly Property<bool, ListBox> ActivateOnSingleClickPropertyDefinition
Field Value
MoveCursorSignal
Signal Descriptor for OnMoveCursor.
public static readonly Signal<ListBox, ListBox.MoveCursorSignalArgs> MoveCursorSignal
Field Value
RowActivatedSignal
Signal Descriptor for OnRowActivated.
public static readonly Signal<ListBox, ListBox.RowActivatedSignalArgs> RowActivatedSignal
Field Value
RowSelectedSignal
Signal Descriptor for OnRowSelected.
public static readonly Signal<ListBox, ListBox.RowSelectedSignalArgs> RowSelectedSignal
Field Value
SelectAllSignal
Signal Descriptor for OnSelectAll.
public static readonly Signal<ListBox> SelectAllSignal
Field Value
SelectedRowsChangedSignal
Signal Descriptor for OnSelectedRowsChanged.
public static readonly Signal<ListBox> SelectedRowsChangedSignal
Field Value
SelectionModePropertyDefinition
public static readonly Property<SelectionMode, ListBox> SelectionModePropertyDefinition
Field Value
ShowSeparatorsPropertyDefinition
public static readonly Property<bool, ListBox> ShowSeparatorsPropertyDefinition
Field Value
ToggleCursorRowSignal
Signal Descriptor for OnToggleCursorRow.
public static readonly Signal<ListBox> ToggleCursorRowSignal
Field Value
UnselectAllSignal
Signal Descriptor for OnUnselectAll.
public static readonly Signal<ListBox> UnselectAllSignal
Field Value
Properties
AcceptUnpairedRelease
public bool AcceptUnpairedRelease { get; set; }
Property Value
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
ActivateOnSingleClick
public bool ActivateOnSingleClick { get; set; }
Property Value
SelectionMode
public SelectionMode SelectionMode { get; set; }
Property Value
ShowSeparators
public bool ShowSeparators { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
Append(Widget)
public void Append(Widget child)
Parameters
child
Widget
BindModel(ListModel?, ListBoxCreateWidgetFunc?)
public void BindModel(ListModel? model, ListBoxCreateWidgetFunc? createWidgetFunc)
Parameters
model
ListModelcreateWidgetFunc
ListBoxCreateWidgetFunc
DragHighlightRow(ListBoxRow)
public void DragHighlightRow(ListBoxRow row)
Parameters
row
ListBoxRow
DragUnhighlightRow()
public void DragUnhighlightRow()
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetActivateOnSingleClick()
public bool GetActivateOnSingleClick()
Returns
GetAdjustment()
public Adjustment? GetAdjustment()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetRowAtIndex(int)
public ListBoxRow? GetRowAtIndex(int index)
Parameters
index
int
Returns
GetRowAtY(int)
public ListBoxRow? GetRowAtY(int y)
Parameters
y
int
Returns
GetSelectedRow()
public ListBoxRow? GetSelectedRow()
Returns
GetSelectionMode()
public SelectionMode GetSelectionMode()
Returns
GetShowSeparators()
public bool GetShowSeparators()
Returns
Insert(Widget, int)
public void Insert(Widget child, int position)
Parameters
InvalidateFilter()
public void InvalidateFilter()
InvalidateHeaders()
public void InvalidateHeaders()
InvalidateSort()
public void InvalidateSort()
New()
public static ListBox New()
Returns
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
AccessiblenextSibling
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
OnMoveCursor
public event SignalHandler<ListBox, ListBox.MoveCursorSignalArgs> OnMoveCursor
Event Type
OnRowActivated
public event SignalHandler<ListBox, ListBox.RowActivatedSignalArgs> OnRowActivated
Event Type
OnRowSelected
public event SignalHandler<ListBox, ListBox.RowSelectedSignalArgs> OnRowSelected
Event Type
OnSelectAll
public event SignalHandler<ListBox> OnSelectAll
Event Type
OnSelectedRowsChanged
public event SignalHandler<ListBox> OnSelectedRowsChanged
Event Type
OnToggleCursorRow
public event SignalHandler<ListBox> OnToggleCursorRow
Event Type
OnUnselectAll
public event SignalHandler<ListBox> OnUnselectAll