PooledUILayer
Provides the base class from which the classes that represent pooled UI layers are derived. This class has object pool that stores UI elements that are not currently in use. This way they can be reused.
Definition
Namespace:Telerik.WinForms.Controls.Spreadsheet.Layers
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public abstract class PooledUILayer : UILayer, INamedObject
Inheritance: objectUILayerPooledUILayer
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the PooledUILayer class.
protected PooledUILayer()
Properties
Gets the value indicating if the UI element will be reused without removing from visual tree.
protected virtual bool ReuseUIElementsWithoutRemovingFromVisualTree { get; }
The value indicating if the UI element will be reused without removing from visual tree.
Methods
Adds the element to pool.
Clears this instance by removing all UI elements and returning them in the pool.
public override void Clear()
Overrides:
Gets the element from pool.
protected T GetElementFromPool<T>() where T : class, new()
T
The desired element.
Gets the element from pool.
protected T GetElementFromPool<T>(ViewportPaneType paneType) where T : class, new()
T
The desired element.
Called when UI is updated.
protected override void OnUIUpdated()
Overrides:
Resets the pooled element properties.
protected virtual void ResetPooledElementProperties(object element)
The element.