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