Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Grid Assembly / C1.Xamarin.Forms.Grid Namespace / GridCellFactory Class / GetCellContentType Method
Type of the cell.
The range.

In This Topic
    GetCellContentType Method (GridCellFactory)
    In This Topic
    Gets a key that defines the type of cell content.
    Public Overrides Function GetCellContentType( _
       ByVal cellType As GridCellType, _
       ByVal range As GridCellRange _
    ) As Object
    Dim instance As GridCellFactory
    Dim cellType As GridCellType
    Dim range As GridCellRange
    Dim value As Object
    value = instance.GetCellContentType(cellType, range)
    public override object GetCellContentType( 
       GridCellType cellType,
       GridCellRange range


    Type of the cell.
    The range.

    Return Value

    The returned object will be used as a key to recycle cell content´s
    If null is returned, the cell will not be recycled, therefore the GridCellFactoryBase.CreateCellContent method will be called for every rendered cell. Notice this will affect the performance negatively.
    See Also