TableModel Class

Definition

Abstract base class that provides the data model for a TableView.

public ref class TableModel abstract : Microsoft::Maui::Controls::ITableModel
public abstract class TableModel : Microsoft.Maui.Controls.ITableModel
type TableModel = class
    interface ITableModel
Public MustInherit Class TableModel
Implements ITableModel
Inheritance
TableModel
Implements

Constructors

Name Description
TableModel()

Methods

Name Description
GetCell(Int32, Int32)

Returns the cell for the specified section and row.

GetHeaderCell(Int32)

Returns the header cell for the specified section.

GetItem(Int32, Int32)

Returns the data item for the specified section and row.

GetRowCount(Int32)

Returns the number of rows in the specified section.

GetSectionCount()

Returns the total number of sections in the table.

GetSectionIndexTitles()

Returns an array of index titles for quick navigation between sections.

GetSectionTextColor(Int32)

Returns the text color for the specified section header.

GetSectionTitle(Int32)

Returns the title for the specified section.

OnRowLongPressed(Object)
OnRowSelected(Object)
RowLongPressed(Int32, Int32)

Invokes the long-press event for the item at the specified section and row.

RowLongPressed(Object)

Invokes the long-press event for the specified item.

RowSelected(Int32, Int32)

Invokes the selection event for the item at the specified section and row.

RowSelected(Object)

Invokes the selection event for the specified item.

Events

Name Description
ItemLongPressed
ItemSelected

Applies to