Class NoSelection
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class NoSelection : Object, IObject, INotifyPropertyChanged, IDisposable, ListModel, SectionModel, SelectionModel, IHandle, GTypeProvider
- Inheritance
-
NoSelection
- Implements
-
- Inherited Members
-
Constructors
NoSelection(bool, params ConstructArgument[])
protected NoSelection(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
NoSelection(IntPtr, bool)
protected NoSelection(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
ModelPropertyDefinition
public static readonly Property<ListModel, NoSelection> ModelPropertyDefinition
Field Value
- Property<ListModel, NoSelection>
NItemsPropertyDefinition
public static readonly Property<uint, NoSelection> NItemsPropertyDefinition
Field Value
- Property<uint, NoSelection>
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 NoSelection New(ListModel? model)
Parameters
model
ListModel
Returns
- NoSelection
SectionsChanged(uint, uint)
public void SectionsChanged(uint position, uint nItems)
Parameters
position
uint
nItems
uint
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