New to Telerik UI for WinFormsStart a free 30-day trial

Represents a virtualized cell elements provider.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VirtualCellsElementProvider : IVirtualizedElementProvider<int>

Inheritance: objectVirtualCellsElementProvider

Implements: IVirtualizedElementProvider<int>

Constructors

Initializes a new instance of the VirtualCellsElementProvider class.

C#
public VirtualCellsElementProvider(VirtualGridTableElement owner)
Parameters:ownerVirtualGridTableElement

The owner.

Properties

Gets or sets the default size of the element.

C#
public SizeF DefaultElementSize { get; set; }
Property Value:

The default size of the element.

Implements: IVirtualizedElementProvider<int>.DefaultElementSize

Methods

Caches the element.

C#
public bool CacheElement(IVirtualizedElement<int> element)
Parameters:elementIVirtualizedElement<int>

The element.

Returns:

bool

Implements: IVirtualizedElementProvider<int>.CacheElement(IVirtualizedElement<int>)

Clears the cached elements.

C#
public void ClearCache()

Implements: IVirtualizedElementProvider<int>.ClearCache()

Creates the element.

C#
public VirtualGridCellElement CreateElement(int data, Type cellType, object context)
Parameters:dataint

The data.

cellTypeType

Type of the cell.

contextobject

The context.

Returns:

VirtualGridCellElement

Gets the element.

C#
public IVirtualizedElement<int> GetElement(int data, object context)
Parameters:dataint

The data.

contextobject

The context.

Returns:

IVirtualizedElement<int>

Implements: IVirtualizedElementProvider<int>.GetElement(int, object)

Gets the size of the element.

C#
public SizeF GetElementSize(int data)
Parameters:dataint

The data.

Returns:

SizeF

Implements: IVirtualizedElementProvider<int>.GetElementSize(int)

Gets the size of the element.

C#
public SizeF GetElementSize(IVirtualizedElement<int> element)
Parameters:elementIVirtualizedElement<int>

The element.

Returns:

SizeF

Implements: IVirtualizedElementProvider<int>.GetElementSize(IVirtualizedElement<int>)

Determines whether the specified element is compatible with its data.

C#
public bool IsCompatible(IVirtualizedElement<int> element, int data, object context)
Parameters:elementIVirtualizedElement<int>

The element.

dataint

The data.

contextobject

The context.

Returns:

bool

true if the specified element is compatible; otherwise, false.

Implements: IVirtualizedElementProvider<int>.IsCompatible(IVirtualizedElement<int>, int, object)

Returns whether an update operation should be performed.

C#
public bool ShouldUpdate(IVirtualizedElement<int> element, int data, object context)
Parameters:elementIVirtualizedElement<int>

The element.

dataint

The data.

contextobject

The context.

Returns:

bool

Implements: IVirtualizedElementProvider<int>.ShouldUpdate(IVirtualizedElement<int>, int, object)