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

Class PooledUILayer. Implements the UILayer

Definition

Constructors

Initializes a new instance of the PooledUILayer class.

C#
protected PooledUILayer()

Methods

Adds the element to pool.

C#
protected void AddElementToPool(object element)
Parameters:elementobject

The element.

Determines whether this instance can recycle the specified element.

C#
protected virtual bool CanRecycle(object element)
Parameters:elementobject

The element.

Returns:

bool

true if this instance can recycle the specified element; otherwise, false.

Clears this instance.

C#
public override void Clear()

Overrides: UILayer.Clear()

Gets the element from pool.

C#
protected T GetElementFromPool<T>() where T : class, new()
Returns:

T

Resets the pooled element properties.

C#
protected abstract void ResetPooledElementProperties(object element)
Parameters:elementobject

The element.