Table of Contents

Class ListView

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class ListView : ListBase, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, Orientable, Scrollable, IHandle, GTypeProvider
Inheritance
ListView
Implements
Inherited Members

Constructors

ListView()

public ListView()

ListView(params ConstructArgument[])

protected ListView(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ListView(IntPtr, bool)

protected ListView(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActivateSignal

Signal Descriptor for OnActivate.

public static readonly Signal<ListView, ListView.ActivateSignalArgs> ActivateSignal

Field Value

Signal<ListView, ListView.ActivateSignalArgs>

EnableRubberbandPropertyDefinition

public static readonly Property<bool, ListView> EnableRubberbandPropertyDefinition

Field Value

Property<bool, ListView>

FactoryPropertyDefinition

public static readonly Property<ListItemFactory?, ListView> FactoryPropertyDefinition

Field Value

Property<ListItemFactory, ListView>

HeaderFactoryPropertyDefinition

public static readonly Property<ListItemFactory?, ListView> HeaderFactoryPropertyDefinition

Field Value

Property<ListItemFactory, ListView>

ModelPropertyDefinition

public static readonly Property<SelectionModel, ListView> ModelPropertyDefinition

Field Value

Property<SelectionModel, ListView>

ShowSeparatorsPropertyDefinition

public static readonly Property<bool, ListView> ShowSeparatorsPropertyDefinition

Field Value

Property<bool, ListView>

SingleClickActivatePropertyDefinition

public static readonly Property<bool, ListView> SingleClickActivatePropertyDefinition

Field Value

Property<bool, ListView>

TabBehaviorPropertyDefinition

public static readonly Property<ListTabBehavior, ListView> TabBehaviorPropertyDefinition

Field Value

Property<ListTabBehavior, ListView>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

EnableRubberband

public bool EnableRubberband { get; set; }

Property Value

bool

Factory

public ListItemFactory? Factory { get; set; }

Property Value

ListItemFactory

Hadjustment

public Adjustment? Hadjustment { get; set; }

Property Value

Adjustment

HeaderFactory

public ListItemFactory? HeaderFactory { get; set; }

Property Value

ListItemFactory

HscrollPolicy

public ScrollablePolicy HscrollPolicy { get; set; }

Property Value

ScrollablePolicy

Model

public SelectionModel Model { get; set; }

Property Value

SelectionModel

ShowSeparators

public bool ShowSeparators { get; set; }

Property Value

bool

SingleClickActivate

public bool SingleClickActivate { get; set; }

Property Value

bool

TabBehavior

public ListTabBehavior TabBehavior { get; set; }

Property Value

ListTabBehavior

Vadjustment

public Adjustment? Vadjustment { get; set; }

Property Value

Adjustment

VscrollPolicy

public ScrollablePolicy VscrollPolicy { get; set; }

Property Value

ScrollablePolicy

Methods

Announce(string, AccessibleAnnouncementPriority)

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

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

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

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

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

GetEnableRubberband()

public bool GetEnableRubberband()

Returns

bool

GetFactory()

public ListItemFactory? GetFactory()

Returns

ListItemFactory

GetFirstAccessibleChild()

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

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetHadjustment()

public Adjustment? GetHadjustment()

Returns

Adjustment

GetHeaderFactory()

[Version("4.12")]
public ListItemFactory? GetHeaderFactory()

Returns

ListItemFactory

GetHscrollPolicy()

public ScrollablePolicy GetHscrollPolicy()

Returns

ScrollablePolicy

GetModel()

public SelectionModel? GetModel()

Returns

SelectionModel

GetNextAccessibleSibling()

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

Returns

Accessible

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetPlatformState(AccessiblePlatformState)

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

Parameters

state AccessiblePlatformState

Returns

bool

GetShowSeparators()

public bool GetShowSeparators()

Returns

bool

GetSingleClickActivate()

public bool GetSingleClickActivate()

Returns

bool

GetTabBehavior()

[Version("4.12")]
public ListTabBehavior GetTabBehavior()

Returns

ListTabBehavior

GetVadjustment()

public Adjustment? GetVadjustment()

Returns

Adjustment

GetVscrollPolicy()

public ScrollablePolicy GetVscrollPolicy()

Returns

ScrollablePolicy

New(SelectionModel?, ListItemFactory?)

public static ListView New(SelectionModel? model, ListItemFactory? factory)

Parameters

model SelectionModel
factory ListItemFactory

Returns

ListView

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

ScrollTo(uint, ListScrollFlags, ScrollInfo?)

[Version("4.12")]
public void ScrollTo(uint pos, ListScrollFlags flags, ScrollInfo? scroll)

Parameters

pos uint
flags ListScrollFlags
scroll ScrollInfo

SetAccessibleParent(Accessible?, Accessible?)

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

Parameters

parent Accessible
nextSibling Accessible

SetEnableRubberband(bool)

public void SetEnableRubberband(bool enableRubberband)

Parameters

enableRubberband bool

SetFactory(ListItemFactory?)

public void SetFactory(ListItemFactory? factory)

Parameters

factory ListItemFactory

SetHadjustment(Adjustment?)

public void SetHadjustment(Adjustment? hadjustment)

Parameters

hadjustment Adjustment

SetHeaderFactory(ListItemFactory?)

[Version("4.12")]
public void SetHeaderFactory(ListItemFactory? factory)

Parameters

factory ListItemFactory

SetHscrollPolicy(ScrollablePolicy)

public void SetHscrollPolicy(ScrollablePolicy policy)

Parameters

policy ScrollablePolicy

SetModel(SelectionModel?)

public void SetModel(SelectionModel? model)

Parameters

model SelectionModel

SetOrientation(Orientation)

public void SetOrientation(Orientation orientation)

Parameters

orientation Orientation

SetShowSeparators(bool)

public void SetShowSeparators(bool showSeparators)

Parameters

showSeparators bool

SetSingleClickActivate(bool)

public void SetSingleClickActivate(bool singleClickActivate)

Parameters

singleClickActivate bool

SetTabBehavior(ListTabBehavior)

[Version("4.12")]
public void SetTabBehavior(ListTabBehavior tabBehavior)

Parameters

tabBehavior ListTabBehavior

SetVadjustment(Adjustment?)

public void SetVadjustment(Adjustment? vadjustment)

Parameters

vadjustment Adjustment

SetVscrollPolicy(ScrollablePolicy)

public void SetVscrollPolicy(ScrollablePolicy policy)

Parameters

policy ScrollablePolicy

UpdateNextAccessibleSibling(Accessible?)

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

Parameters

newSibling Accessible

Events

OnActivate

public event SignalHandler<ListView, ListView.ActivateSignalArgs> OnActivate

Event Type

SignalHandler<ListView, ListView.ActivateSignalArgs>