[]
        
(Showing Draft Content)

C1.Xamarin.Forms.Grid.GridCellFactoryBase

GridCellFactoryBase Class

Implements the functionality to create grid cells dynamically.

Inheritance
GridCellFactoryBase
Namespace: C1.Xamarin.Forms.Grid
Assembly: C1.Xamarin.Forms.Grid.dll
Syntax
public class GridCellFactoryBase

Constructors

Name Description
GridCellFactoryBase()

Initializes a new instance of the GridCellFactoryBase class.

Properties

Name Description
CellsColumnsCount

Gets the number of columns belonging to the cells area.

CellsRowsCount

Gets the number of rows belonging to the cells area.

ColumnHeaderRowsCount

Gets the number of rows belonging to the column headers area.

ColumnsCount

Gets the total number of columns.

DefaultColumn

Gets the default column dimensions.

DefaultRow

Gets the default row dimensions.

GridBase

Gets the associated grid.

RowHeaderColumnsCount

Gets the number of columns belonging to the row headers area.

RowsCount

Gets the total number of rows.

Methods

Name Description
AllowEditing(GridCellRange)

Returns true when the cell in the specified range can be edited.

ApplySelectionColors(GridCellView, Color, Color, bool)

Applies the selection colors to a specific cell.

ApplySelectionState(GridCellType, GridCellRange, GridCellView)

Applies the selection brushes.

BindCellContent(GridCellType, GridCellRange, View)

Binds the content of the cell.

CanDragColumn(bool, int)

Determines whether the column can be dragged.

CanDragRow(bool, int)

Determines whether the row can be dragged.

CanDropColumn(bool, int, int)

Determines whether the from column can dropped at the to position.

CanDropRow(bool, int, int)

Determines whether the from row can dropped at the to position.

CanSetColumnWidth(bool, int)

Determines whether the with of a column can be set.

CanSetRowHeight(bool, int)

Determines whether the height of the row can be set.

Contains(GridCellFactoryBase)

Returns true if the specified cellFactory is the same instance as this or if it is one of the nested cell factories.

CreateCellContent(GridCellType, GridCellRange, object)

Creates the content of the cell.

CreateCellEditor(GridCellRange)

Creates the cell editor.

DropColumnAsync(bool, int, int)

Drops the column from the original index from to the index to.

DropRowAsync(bool, int, int)

Drops the row from the original index from to the index to.

GetCellContentType(GridCellType, GridCellRange)

Gets a key that defines the type of cell content.

GetCellText(GridCellType, GridCellRange)

Gets the text representing the content of a cell.

GetColumnInfo(bool, int)

Gets the dimensions for the specified column.

GetDefaultColumn()

Gets the default column dimensions.

GetDefaultRow()

Gets the default row dimensions.

GetRowInfo(bool, int)

Gets the dimensions for the specified row.

OnColumnsChanged(GridCellFactoryNotifyChange)

Notifies the cell-factory there were changed in the model columns.

OnColumnsChanging(GridCellFactoryNotifyChange)

Notifies the cell-factory there will be changed in the model columns.

OnEditEnded(GridCellRange, View, bool)

Called when the editing of a cell ended.

OnRowsChanged(GridCellFactoryNotifyChange)

Notifies the cell-factory there were changes in the model rows.

OnRowsChanging(GridCellFactoryNotifyChange)

Notifies the cell-factory there will be changed in the model rows.

PrepareCell(GridCellType, GridCellRange, GridCellView)

Prepares the cell to be shown.

RevertSelectionState(GridCellType, GridCellRange, GridCellView)

Reverts the selection brushes.

SaveDesiredCellSize(GridCellType, GridCellRange)

Returns whether the desired size for a specific cell is taken into account.

SetCellValue(GridCellType, GridCellRange, object)

Sets the value of a specified cell.

SetColumnWidth(bool, int, double)

Sets the width of the specified column.

SetRowHeight(bool, int, double)

Sets the height of the row.

UnbindCellContent(GridCellType, GridCellRange, View)

Unbinds the content of the cell.