Table of Contents

Class MultiSelection

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class MultiSelection : Object, IObject, INotifyPropertyChanged, IDisposable, ListModel, SectionModel, SelectionModel, IHandle, GTypeProvider
Inheritance
MultiSelection
Implements
Inherited Members

Constructors

MultiSelection(bool, params ConstructArgument[])

protected MultiSelection(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

MultiSelection(IntPtr, bool)

protected MultiSelection(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ModelPropertyDefinition

public static readonly Property<ListModel, MultiSelection> ModelPropertyDefinition

Field Value

Property<ListModel, MultiSelection>

NItemsPropertyDefinition

public static readonly Property<uint, MultiSelection> NItemsPropertyDefinition

Field Value

Property<uint, MultiSelection>

Properties

Model

public ListModel Model { get; set; }

Property Value

ListModel

NItems

public uint NItems { get; }

Property Value

uint

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("2.44")]
public IntPtr GetItem(uint position)

Parameters

position uint

Returns

IntPtr

GetItemType()

[Version("2.44")]
public Type GetItemType()

Returns

Type

GetModel()

public ListModel? GetModel()

Returns

ListModel

GetNItems()

[Version("2.44")]
public uint GetNItems()

Returns

uint

GetObject(uint)

[Version("2.44")]
public Object? GetObject(uint position)

Parameters

position uint

Returns

Object

GetSection(uint, out uint, out uint)

[Version("4.12")]
public void GetSection(uint position, out uint outStart, out uint outEnd)

Parameters

position uint
outStart uint
outEnd uint

GetSelection()

public Bitset GetSelection()

Returns

Bitset

GetSelectionInRange(uint, uint)

public Bitset GetSelectionInRange(uint position, uint nItems)

Parameters

position uint
nItems uint

Returns

Bitset

IsSelected(uint)

public bool IsSelected(uint position)

Parameters

position uint

Returns

bool

ItemsChanged(uint, uint, uint)

[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)

Parameters

position uint
removed uint
added uint

New(ListModel?)

public static MultiSelection New(ListModel? model)

Parameters

model ListModel

Returns

MultiSelection

SectionsChanged(uint, uint)

public void SectionsChanged(uint position, uint nItems)

Parameters

position uint
nItems uint

SelectAll()

public bool SelectAll()

Returns

bool

SelectItem(uint, bool)

public bool SelectItem(uint position, bool unselectRest)

Parameters

position uint
unselectRest bool

Returns

bool

SelectRange(uint, uint, bool)

public bool SelectRange(uint position, uint nItems, bool unselectRest)

Parameters

position uint
nItems uint
unselectRest bool

Returns

bool

SelectionChanged(uint, uint)

public void SelectionChanged(uint position, uint nItems)

Parameters

position uint
nItems uint

SetModel(ListModel?)

public void SetModel(ListModel? model)

Parameters

model ListModel

SetSelection(Bitset, Bitset)

public bool SetSelection(Bitset selected, Bitset mask)

Parameters

selected Bitset
mask Bitset

Returns

bool

UnselectAll()

public bool UnselectAll()

Returns

bool

UnselectItem(uint)

public bool UnselectItem(uint position)

Parameters

position uint

Returns

bool

UnselectRange(uint, uint)

public bool UnselectRange(uint position, uint nItems)

Parameters

position uint
nItems uint

Returns

bool