ClassVirtualCellsElementProvider
Represents a virtualized cell elements provider.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class VirtualCellsElementProvider : IVirtualizedElementProvider<int>
Inheritance: objectVirtualCellsElementProvider
Implements:
Constructors
VirtualCellsElementProvider(VirtualGridTableElement)
Initializes a new instance of the VirtualCellsElementProvider class.
Declaration
public VirtualCellsElementProvider(VirtualGridTableElement owner)
Parameters
owner
The owner.
Properties
DefaultElementSize
Gets or sets the default size of the element.
Declaration
public SizeF DefaultElementSize { get; set; }
Property Value
The default size of the element.
Implements
Methods
CacheElement(IVirtualizedElement<int>)
Caches the element.
Declaration
public bool CacheElement(IVirtualizedElement<int> element)
Parameters
element
The element.
Returns
Implements
ClearCache()
Clears the cached elements.
Declaration
public void ClearCache()
Implements
CreateElement(int, Type, object)
Creates the element.
Declaration
public VirtualGridCellElement CreateElement(int data, Type cellType, object context)
Parameters
data
The data.
cellType
Type of the cell.
context
The context.
Returns
GetElement(int, object)
Gets the element.
Declaration
public IVirtualizedElement<int> GetElement(int data, object context)
Parameters
data
The data.
context
The context.
Returns
Implements
GetElementSize(IVirtualizedElement<int>)
Gets the size of the element.
Declaration
public SizeF GetElementSize(IVirtualizedElement<int> element)
Parameters
element
The element.
Returns
Implements
GetElementSize(int)
Gets the size of the element.
IsCompatible(IVirtualizedElement<int>, int, object)
Determines whether the specified element is compatible with its data.
Declaration
public bool IsCompatible(IVirtualizedElement<int> element, int data, object context)
Parameters
element
The element.
data
The data.
context
The context.
Returns
true if the specified element is compatible; otherwise, false.
Implements
ShouldUpdate(IVirtualizedElement<int>, int, object)
Returns whether an update operation should be performed.
Declaration
public bool ShouldUpdate(IVirtualizedElement<int> element, int data, object context)
Parameters
element
The element.
data
The data.
context
The context.
Returns
Implements