Table of Contents

Class ComboBox

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

Constructors

ComboBox()

public ComboBox()

ComboBox(params ConstructArgument[])

protected ComboBox(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ComboBox(IntPtr, bool)

protected ComboBox(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActivateSignal

Signal Descriptor for OnActivate.

public static readonly Signal<ComboBox> ActivateSignal

Field Value

Signal<ComboBox>

ActiveIdPropertyDefinition

public static readonly Property<string?, ComboBox> ActiveIdPropertyDefinition

Field Value

Property<string, ComboBox>

ActivePropertyDefinition

public static readonly Property<int, ComboBox> ActivePropertyDefinition

Field Value

Property<int, ComboBox>

ButtonSensitivityPropertyDefinition

public static readonly Property<SensitivityType, ComboBox> ButtonSensitivityPropertyDefinition

Field Value

Property<SensitivityType, ComboBox>

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<ComboBox> ChangedSignal

Field Value

Signal<ComboBox>

ChildPropertyDefinition

public static readonly Property<Widget?, ComboBox> ChildPropertyDefinition

Field Value

Property<Widget, ComboBox>

EntryTextColumnPropertyDefinition

public static readonly Property<int, ComboBox> EntryTextColumnPropertyDefinition

Field Value

Property<int, ComboBox>

FormatEntryTextSignal

Signal Descriptor for OnFormatEntryText.

public static readonly ReturningSignal<ComboBox, ComboBox.FormatEntryTextSignalArgs, string> FormatEntryTextSignal

Field Value

ReturningSignal<ComboBox, ComboBox.FormatEntryTextSignalArgs, string>

HasEntryPropertyDefinition

public static readonly Property<bool, ComboBox> HasEntryPropertyDefinition

Field Value

Property<bool, ComboBox>

HasFramePropertyDefinition

public static readonly Property<bool, ComboBox> HasFramePropertyDefinition

Field Value

Property<bool, ComboBox>

IdColumnPropertyDefinition

public static readonly Property<int, ComboBox> IdColumnPropertyDefinition

Field Value

Property<int, ComboBox>

ModelPropertyDefinition

public static readonly Property<TreeModel, ComboBox> ModelPropertyDefinition

Field Value

Property<TreeModel, ComboBox>

MoveActiveSignal

Signal Descriptor for OnMoveActive.

public static readonly Signal<ComboBox, ComboBox.MoveActiveSignalArgs> MoveActiveSignal

Field Value

Signal<ComboBox, ComboBox.MoveActiveSignalArgs>

PopdownSignal

Signal Descriptor for OnPopdown.

public static readonly ReturningSignal<ComboBox, bool> PopdownSignal

Field Value

ReturningSignal<ComboBox, bool>

PopupFixedWidthPropertyDefinition

public static readonly Property<bool, ComboBox> PopupFixedWidthPropertyDefinition

Field Value

Property<bool, ComboBox>

PopupShownPropertyDefinition

public static readonly Property<bool, ComboBox> PopupShownPropertyDefinition

Field Value

Property<bool, ComboBox>

PopupSignal

Signal Descriptor for OnPopup.

public static readonly Signal<ComboBox> PopupSignal

Field Value

Signal<ComboBox>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

Active

public int Active { get; set; }

Property Value

int

ActiveId

public string? ActiveId { get; set; }

Property Value

string

ButtonSensitivity

public SensitivityType ButtonSensitivity { get; set; }

Property Value

SensitivityType

Child

public Widget? Child { get; set; }

Property Value

Widget

EditingCanceled

public bool EditingCanceled { get; set; }

Property Value

bool

EntryTextColumn

public int EntryTextColumn { get; set; }

Property Value

int

HasEntry

public bool HasEntry { get; }

Property Value

bool

HasFrame

public bool HasFrame { get; set; }

Property Value

bool

IdColumn

public int IdColumn { get; set; }

Property Value

int

Model

public TreeModel Model { get; set; }

Property Value

TreeModel

PopupFixedWidth

public bool PopupFixedWidth { get; set; }

Property Value

bool

PopupShown

public bool PopupShown { get; }

Property Value

bool

Methods

Announce(string, AccessibleAnnouncementPriority)

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

Parameters

message string
priority AccessibleAnnouncementPriority

EditingDone()

public void EditingDone()

GetAccessibleParent()

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

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActive()

public int GetActive()

Returns

int

GetActiveId()

public string? GetActiveId()

Returns

string

GetArea()

public CellArea? GetArea()

Returns

CellArea

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

GetButtonSensitivity()

public SensitivityType GetButtonSensitivity()

Returns

SensitivityType

GetChild()

public Widget? GetChild()

Returns

Widget

GetEntryTextColumn()

public int GetEntryTextColumn()

Returns

int

GetFirstAccessibleChild()

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

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetHasEntry()

public bool GetHasEntry()

Returns

bool

GetIdColumn()

public int GetIdColumn()

Returns

int

GetModel()

public TreeModel? GetModel()

Returns

TreeModel

GetNextAccessibleSibling()

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

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

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

Parameters

state AccessiblePlatformState

Returns

bool

GetPopupFixedWidth()

public bool GetPopupFixedWidth()

Returns

bool

New()

public static ComboBox New()

Returns

ComboBox

NewWithEntry()

public static ComboBox NewWithEntry()

Returns

ComboBox

NewWithModel(TreeModel)

public static ComboBox NewWithModel(TreeModel model)

Parameters

model TreeModel

Returns

ComboBox

NewWithModelAndEntry(TreeModel)

public static ComboBox NewWithModelAndEntry(TreeModel model)

Parameters

model TreeModel

Returns

ComboBox

Popdown()

public void Popdown()

Popup()

public void Popup()

PopupForDevice(Device)

public void PopupForDevice(Device device)

Parameters

device Device

RemoveWidget()

public void RemoveWidget()

Reorder(CellRenderer, int)

public void Reorder(CellRenderer cell, int position)

Parameters

cell CellRenderer
position int

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

SetAccessibleParent(Accessible?, Accessible?)

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

Parameters

parent Accessible
nextSibling Accessible

SetActive(int)

public void SetActive(int index)

Parameters

index int

SetActiveId(string?)

public bool SetActiveId(string? activeId)

Parameters

activeId string

Returns

bool

SetActiveIter(TreeIter?)

public void SetActiveIter(TreeIter? iter)

Parameters

iter TreeIter

SetButtonSensitivity(SensitivityType)

public void SetButtonSensitivity(SensitivityType sensitivity)

Parameters

sensitivity SensitivityType

SetCellDataFunc(CellRenderer, CellLayoutDataFunc?)

public void SetCellDataFunc(CellRenderer cell, CellLayoutDataFunc? func)

Parameters

cell CellRenderer
func CellLayoutDataFunc

SetChild(Widget?)

public void SetChild(Widget? child)

Parameters

child Widget

SetEntryTextColumn(int)

public void SetEntryTextColumn(int textColumn)

Parameters

textColumn int

SetIdColumn(int)

public void SetIdColumn(int idColumn)

Parameters

idColumn int

SetModel(TreeModel?)

public void SetModel(TreeModel? model)

Parameters

model TreeModel

SetPopupFixedWidth(bool)

public void SetPopupFixedWidth(bool @fixed)

Parameters

fixed bool

SetRowSeparatorFunc(TreeViewRowSeparatorFunc?)

public void SetRowSeparatorFunc(TreeViewRowSeparatorFunc? func)

Parameters

func TreeViewRowSeparatorFunc

StartEditing(Event?)

public void StartEditing(Event? @event)

Parameters

event Event

UpdateNextAccessibleSibling(Accessible?)

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

Parameters

newSibling Accessible

Events

OnActivate

public event SignalHandler<ComboBox> OnActivate

Event Type

SignalHandler<ComboBox>

OnChanged

public event SignalHandler<ComboBox> OnChanged

Event Type

SignalHandler<ComboBox>

OnFormatEntryText

public event ReturningSignalHandler<ComboBox, ComboBox.FormatEntryTextSignalArgs, string> OnFormatEntryText

Event Type

ReturningSignalHandler<ComboBox, ComboBox.FormatEntryTextSignalArgs, string>

OnMoveActive

public event SignalHandler<ComboBox, ComboBox.MoveActiveSignalArgs> OnMoveActive

Event Type

SignalHandler<ComboBox, ComboBox.MoveActiveSignalArgs>

OnPopdown

public event ReturningSignalHandler<ComboBox, bool> OnPopdown

Event Type

ReturningSignalHandler<ComboBox, bool>

OnPopup

public event SignalHandler<ComboBox> OnPopup

Event Type

SignalHandler<ComboBox>