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

Represents interface for virtualized element provider

Definition

Properties

Gets or sets the default size of the element.

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

The default size of the element.

Methods

Caches the element.

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

The element.

Returns:

bool

Clears the cached elements.

C#
void ClearCache()

Gets the element.

C#
IVirtualizedElement<T> GetElement(T data, object context)
Parameters:dataT

The data.

contextobject

The context.

Returns:

IVirtualizedElement<T>

Gets the size of the element.

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

The element.

Returns:

SizeF

Gets the size of the element.

C#
SizeF GetElementSize(T data)
Parameters:dataT

The data.

Returns:

SizeF

Determines whether the specified element is compatible with its data.

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

The element.

dataT

The data.

contextobject

The context.

Returns:

bool

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

Shoulds the update.

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

The element.

dataT

The data.

contextobject

The context.

Returns:

bool